Skip to content

Commit c31235c

Browse files
author
Fuss Florian (uid10804)
committed
refactor(template): update webpack copy plugin options to use patterns property in webpack config
1 parent 9525029 commit c31235c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/template/webpack.config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ module.exports = {
1212
NODE_ENV: process.env.NODE_ENV ? process.env.NODE_ENV : 'dev', // use 'dev' unless process.env.NODE_ENV is defined
1313
DEBUG: false,
1414
}),
15-
new CopyPlugin([
16-
{ from: appConfig.jsonFile, to: '../db.json' },
17-
{ from: './config/appconfig.json', to: './config/appconfig.json' },
18-
]),
15+
new CopyPlugin({
16+
patterns: [
17+
{ from: appConfig.jsonFile, to: '../db.json' },
18+
{ from: './config/appconfig.json', to: './config/appconfig.json' },
19+
],
20+
}),
1921
],
2022
entry: { './src/handler': './src/handler.ts' },
2123
resolve: {

0 commit comments

Comments
 (0)