20 lines
363 B
JavaScript
20 lines
363 B
JavaScript
var path = require('path');
|
|
var webpack = require('webpack');
|
|
|
|
module.exports = {
|
|
entry: './input',
|
|
output: {
|
|
filename: 'output.js',
|
|
},
|
|
resolve: {
|
|
root: path.resolve('../../../../build/node_modules/'),
|
|
},
|
|
plugins: [
|
|
new webpack.DefinePlugin({
|
|
'process.env': {
|
|
NODE_ENV: JSON.stringify('production'),
|
|
},
|
|
}),
|
|
],
|
|
};
|