mirror of
https://github.com/ritz078/transform.git
synced 2026-11-27 02:59:48 +03:00
15 lines
345 B
JavaScript
15 lines
345 B
JavaScript
const BabiliPlugin = require("babili-webpack-plugin")
|
|
|
|
module.exports = {
|
|
webpack: (config, { dev }) => {
|
|
config.plugins = config.plugins.filter(plugin => plugin.constructor.name !== 'UglifyJsPlugin');
|
|
|
|
config.node = {
|
|
fs: 'empty'
|
|
}
|
|
if(!dev) {
|
|
config.plugins.push(new BabiliPlugin())
|
|
}
|
|
return config;
|
|
}
|
|
}; |