update webpack config syntax error
This commit is contained in:
parent
5bf7faa09a
commit
e1626dfc43
|
@ -108,10 +108,8 @@ const config = {
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
}),
|
}),
|
||||||
// ref: https://github.com/angular/angular/issues/20357
|
// ref: https://github.com/angular/angular/issues/20357
|
||||||
new webpack.ContextReplacementPlugin(
|
new webpack.ContextReplacementPlugin(/\@angular(\\|\/)core(\\|\/)esm5/,
|
||||||
/\@angular(\\|\/)core(\\|\/)esm5/,
|
path.resolve(__dirname, './src')),
|
||||||
path.resolve(__dirname, './src'),
|
|
||||||
),
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
name: 'popup/vendor',
|
name: 'popup/vendor',
|
||||||
chunks: ['popup/main'],
|
chunks: ['popup/main'],
|
||||||
|
|
Loading…
Reference in New Issue