Change do-catalog lib/images

pull/15911/head
Jesús Arroyo Torrens 4 years ago
parent 535c042320
commit 562fdb49b2

@ -21,7 +21,6 @@ new Vue({
// HTML integration // HTML integration
/* /*
<link rel="stylesheet" href="./do-catalog.css"> <script src="./javascripts/do-catalog.umd.min.js" async defer></script>
<script src="./do-catalog.umd.min.js" async defer></script>
<div id="do-catalog"></div> <div id="do-catalog"></div>
*/ */

@ -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]'
}));
} }
}; };

Loading…
Cancel
Save