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.
 
 
 

24 lines
488 B

const
manifest = require('../manifest');
const Dotenv = require('dotenv-webpack');
const plugins = [];
plugins.push(
require('./imageminPlugin'),
...(require('./htmlPlugin')),
...(require('./internal')),
require('./caseSensitivePlugin'),
require('./extractPlugin'),
new Dotenv()
);
if (manifest.IS_DEVELOPMENT) {
plugins.push(require('./dashboardPlugin'));
}
if (manifest.IS_PRODUCTION) {
plugins.push(require('./copyPlugin'));
}
module.exports = plugins;