26 lines
474 B
JavaScript
26 lines
474 B
JavaScript
module.exports = {
|
|
publicPath: '',
|
|
assetsDir: 'live-atlas',
|
|
|
|
pluginOptions: {
|
|
svgSprite: {
|
|
loaderOptions: {
|
|
extract: true,
|
|
spriteFilename: 'live-atlas/img/icons.[hash:8].svg'
|
|
},
|
|
}
|
|
},
|
|
|
|
chainWebpack: config => {
|
|
config.plugin('html')
|
|
.tap(args => {
|
|
args[0].minify = false
|
|
return args
|
|
})
|
|
config.module
|
|
.rule('svg-sprite')
|
|
.use('svgo-loader')
|
|
.loader('svgo-loader')
|
|
}
|
|
}
|