|
|
@ -3,7 +3,7 @@ const { version } = require('./package.json');
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
module.exports = {
|
|
|
|
runtimeCompiler: true,
|
|
|
|
runtimeCompiler: true,
|
|
|
|
outputDir: path.resolve(__dirname, `public/assets/${version}/export`),
|
|
|
|
outputDir: path.resolve(__dirname, `public/assets/${version}/javascripts`),
|
|
|
|
configureWebpack: {
|
|
|
|
configureWebpack: {
|
|
|
|
resolve: {
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
alias: {
|
|
|
@ -14,14 +14,26 @@ module.exports = {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
performance: {
|
|
|
|
performance: {
|
|
|
|
maxEntrypointSize: 2048000,
|
|
|
|
maxEntrypointSize: 2048000,
|
|
|
|
maxAssetSize: 1024000
|
|
|
|
maxAssetSize: 2048000
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
css: {
|
|
|
|
css: {
|
|
|
|
|
|
|
|
extract: false,
|
|
|
|
loaderOptions: {
|
|
|
|
loaderOptions: {
|
|
|
|
scss: {
|
|
|
|
scss: {
|
|
|
|
data: `@import 'do-catalog/main.scss';`
|
|
|
|
data: `@import 'do-catalog/main.scss';`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
chainWebpack: config => {
|
|
|
|
|
|
|
|
config.module.rule('images').use('url-loader')
|
|
|
|
|
|
|
|
.loader('file-loader')
|
|
|
|
|
|
|
|
.tap(options => Object.assign(options, {
|
|
|
|
|
|
|
|
name: '../images/do-catalog/[name].[hash:8].[ext]'
|
|
|
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
config.module.rule('svg').use('file-loader')
|
|
|
|
|
|
|
|
.tap(options => Object.assign(options, {
|
|
|
|
|
|
|
|
name: '../images/do-catalog/[name].[hash:8].[ext]'
|
|
|
|
|
|
|
|
}));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|