Add back copy plugin changes

This commit is contained in:
Ajay Ramachandran
2020-08-27 21:27:43 -04:00
parent 9636fd72de
commit 03a1af813e

View File

@@ -35,11 +35,18 @@ module.exports = env => ({
}, },
plugins: [ plugins: [
// exclude locale files in moment // exclude locale files in moment
new CopyPlugin([ new CopyPlugin({
{ from: '.', to: '../', ignore: ['manifest.json'] } patterns: [
], {
{context: 'public' } from: '.',
), to: '../',
globOptions: {
ignore: ['manifest.json'],
},
context: './public',
}
]
}),
new BuildManifest({ new BuildManifest({
browser: env.browser, browser: env.browser,
pretty: env.mode === "production", pretty: env.mode === "production",