You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
547 B
20 lines
547 B
const FileManagerPlugin = require("filemanager-webpack-plugin");
|
|
|
|
module.exports = function override(config, env) {
|
|
config.plugins = (config.plugins || []).concat([
|
|
new FileManagerPlugin({
|
|
events: {
|
|
onStart: {
|
|
delete: ["./dist/[!.gitignore]*"],
|
|
},
|
|
onEnd: {
|
|
copy: [
|
|
{ source: "./build", destination: "./dist" },
|
|
],
|
|
},
|
|
},
|
|
}),
|
|
]);
|
|
|
|
return config;
|
|
};
|
|
|