mirror of https://github.com/mx-space/core
20 lines
381 B
JavaScript
20 lines
381 B
JavaScript
const webpack = require('webpack')
|
|
|
|
const { resolve } = require('path')
|
|
module.exports = function (options) {
|
|
options.plugins = (options.plugins || []).concat(
|
|
new webpack.DefinePlugin({
|
|
isDev: false,
|
|
isTest: false,
|
|
}),
|
|
)
|
|
|
|
options.output = {
|
|
filename: 'index.js',
|
|
path: resolve(process.cwd(), 'webpack-dist'),
|
|
}
|
|
return {
|
|
...options,
|
|
}
|
|
}
|