Skip to content

Commit 2a60c57

Browse files
committed
fix(Build): Correcting webpack config
1 parent c1a91c8 commit 2a60c57

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.config/webpack.common.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ module.exports = {
6464
template: helpers.root('demo', 'index.html'),
6565
}),
6666

67-
new CopyWebpackPlugin([{ from: helpers.root('demo', 'assets'), to: 'assets' }]),
67+
new CopyWebpackPlugin({ patterns: [
68+
{ from: helpers.root('demo', 'assets'), to: 'assets' }
69+
]}),
6870

6971
new AngularCompilerPlugin({
7072
tsConfigPath: './tsconfig.json',

.config/webpack.github.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
var webpackMerge = require('webpack-merge');
2-
var commonConfig = require('./webpack.prod.js');
3-
var helpers = require('./helpers');
1+
const { merge } = require('webpack-merge');
2+
const commonConfig = require('./webpack.prod.js');
3+
const helpers = require('./helpers');
44

5-
module.exports = webpackMerge(commonConfig, {
5+
module.exports = merge(commonConfig, {
6+
mode: 'production',
67
output: {
78
path: helpers.root('docs'),
89
publicPath: 'https://visjs.github.io/ngx-vis',
910
filename: '[name].[hash].js',
1011
chunkFilename: '[id].[hash].chunk.js',
11-
mode: 'production'
1212
}
1313
});

0 commit comments

Comments
 (0)