Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(webpack): fix path resolution
Browse files Browse the repository at this point in the history
fix path resolution
  • Loading branch information
danbucholtz committed Nov 19, 2016
1 parent ef7203b commit 97c23f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ module.exports = {

resolve: {
extensions: ['.js', '.ts', '.json'],
modules: [path.resolve('{{ROOT}}', 'node_modules')]
modules: [path.resolve('node_modules')]
},

module: {
loaders: [
{
test: /\.json$/,
loader: 'json-loader'
loader: 'json'
}
].concat(getSourcemapLoader())
},
Expand Down
6 changes: 6 additions & 0 deletions src/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,15 @@ export interface WebpackConfig {
devtool: string;
entry: string;
output: WebpackOutputObject;
resolve: WebpackResolveObject;
}

export interface WebpackOutputObject {
path: string;
filename: string;
}

export interface WebpackResolveObject {
extensions: string[];
modules: string[];
}

0 comments on commit 97c23f9

Please sign in to comment.