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: [
// 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",