24 lines
396 B
JavaScript
24 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'
|
|
}
|
|
]
|
|
}
|
|
});
|