forked from zhurui/management
25 lines
396 B
JavaScript
25 lines
396 B
JavaScript
const path = require('path');
|
|
const merge = require('deepmerge');
|
|
const baseConfig = require('../base-webpack.config');
|
|
|
|
module.exports = merge(baseConfig, {
|
|
context: __dirname,
|
|
|
|
entry: './main',
|
|
|
|
output: {
|
|
path: path.resolve(__dirname, 'build')
|
|
},
|
|
|
|
target: 'node',
|
|
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.svg$/,
|
|
loader: 'svg-sprite-loader'
|
|
}
|
|
]
|
|
}
|
|
});
|