aboutsummaryrefslogtreecommitdiffhomepage
path: root/webpack/webpack.common.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack/webpack.common.js')
-rw-r--r--webpack/webpack.common.js17
1 files changed, 12 insertions, 5 deletions
diff --git a/webpack/webpack.common.js b/webpack/webpack.common.js
index 99dbac35..79fea60b 100644
--- a/webpack/webpack.common.js
+++ b/webpack/webpack.common.js
@@ -35,11 +35,18 @@ module.exports = env => ({
},
plugins: [
// exclude locale files in moment
- new CopyPlugin([
- { from: '.', to: '../', ignore: ['manifest.json'] }
- ],
- {context: 'public' }
- ),
+ new CopyPlugin({
+ patterns: [
+ {
+ from: '.',
+ to: '../',
+ globOptions: {
+ ignore: ['manifest.json'],
+ },
+ context: './public',
+ }
+ ]
+ }),
new BuildManifest({
browser: env.browser,
pretty: env.mode === "production",