mirror of
https://github.com/ritz078/transform.git
synced 2026-12-01 13:02:08 +03:00
19 lines
364 B
JavaScript
19 lines
364 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;
|
|
}
|
|
}; |