2018-05-18 11:28:29 +02:00
|
|
|
module.exports = {
|
2019-05-31 11:31:44 +02:00
|
|
|
pluginOptions: {
|
|
|
|
webpackBundleAnalyzer: {
|
2019-08-02 14:57:06 +02:00
|
|
|
analyzerMode: 'disabled'
|
2019-05-31 11:31:44 +02:00
|
|
|
}
|
|
|
|
},
|
2018-05-18 11:28:29 +02:00
|
|
|
lintOnSave: false,
|
2018-07-04 14:29:17 +02:00
|
|
|
runtimeCompiler: true,
|
2019-07-05 16:59:25 +02:00
|
|
|
outputDir: '../priv/static',
|
2018-05-18 11:28:29 +02:00
|
|
|
configureWebpack: {
|
2019-01-18 14:47:10 +01:00
|
|
|
module: {
|
|
|
|
rules: [ // fixes https://github.com/graphql/graphql-js/issues/1272
|
|
|
|
{
|
|
|
|
test: /\.mjs$/,
|
|
|
|
include: /node_modules/,
|
|
|
|
type: 'javascript/auto',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2019-04-17 17:13:20 +02:00
|
|
|
output: {
|
|
|
|
filename: 'app.js'
|
|
|
|
}
|
2018-05-18 11:28:29 +02:00
|
|
|
},
|
2019-03-04 17:20:18 +01:00
|
|
|
chainWebpack: config => {
|
2019-10-17 14:20:22 +02:00
|
|
|
// config
|
|
|
|
// .plugin('html')
|
|
|
|
// .tap(args => {
|
|
|
|
// args[0].minify = {
|
|
|
|
// removeComments: false,
|
|
|
|
// };
|
|
|
|
// return args
|
|
|
|
// });
|
2019-04-24 20:50:05 +02:00
|
|
|
|
|
|
|
config.module
|
|
|
|
.rule("vue")
|
|
|
|
.use("vue-svg-inline-loader")
|
|
|
|
.loader("vue-svg-inline-loader")
|
2019-10-13 18:21:35 +02:00
|
|
|
.options({
|
|
|
|
addAttributes: {
|
|
|
|
role: "img",
|
|
|
|
focusable: false,
|
|
|
|
tabindex: -1,
|
|
|
|
'aria-labelledby': "MobilizonLogoTitle"
|
|
|
|
},
|
|
|
|
svgo: {
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
removeTitle: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
cleanupIDs: false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
});
|
2019-03-04 17:20:18 +01:00
|
|
|
}
|
2018-05-18 11:28:29 +02:00
|
|
|
};
|