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

Commit 97c23f9

Browse files
committed
fix(webpack): fix path resolution
fix path resolution
1 parent ef7203b commit 97c23f9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

config/webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ module.exports = {
6363

6464
resolve: {
6565
extensions: ['.js', '.ts', '.json'],
66-
modules: [path.resolve('{{ROOT}}', 'node_modules')]
66+
modules: [path.resolve('node_modules')]
6767
},
6868

6969
module: {
7070
loaders: [
7171
{
7272
test: /\.json$/,
73-
loader: 'json-loader'
73+
loader: 'json'
7474
}
7575
].concat(getSourcemapLoader())
7676
},

src/webpack.ts

+6
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,15 @@ export interface WebpackConfig {
209209
devtool: string;
210210
entry: string;
211211
output: WebpackOutputObject;
212+
resolve: WebpackResolveObject;
212213
}
213214

214215
export interface WebpackOutputObject {
215216
path: string;
216217
filename: string;
217218
}
219+
220+
export interface WebpackResolveObject {
221+
extensions: string[];
222+
modules: string[];
223+
}

0 commit comments

Comments
 (0)