shift73k/assets_old/node_modules/svg-sprite-loader/examples/browser-sprite/webpack.config.js

25 lines
421 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')
},
module: {
rules: [
{
test: /\.svg$/,
use: [
'svg-sprite-loader',
'svgo-loader'
]
}
]
}
});