1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-27 10:19:59 +00:00
mobilizon/js/vue.config.js

58 lines
1.2 KiB
JavaScript
Raw Normal View History

module.exports = {
pluginOptions: {
webpackBundleAnalyzer: {
analyzerMode: 'disabled'
}
},
lintOnSave: false,
runtimeCompiler: true,
outputDir: '../priv/static',
configureWebpack: {
2019-01-18 13:47:10 +00:00
module: {
rules: [ // fixes https://github.com/graphql/graphql-js/issues/1272
{
test: /\.mjs$/,
include: /node_modules/,
type: 'javascript/auto',
},
],
},
2019-04-17 15:13:20 +00:00
output: {
filename: 'app.js'
}
},
chainWebpack: config => {
// config
// .plugin('html')
// .tap(args => {
// args[0].minify = {
// removeComments: false,
// };
// return args
// });
config.module
.rule("vue")
.use("vue-svg-inline-loader")
.loader("vue-svg-inline-loader")
.options({
addAttributes: {
role: "img",
focusable: false,
tabindex: -1,
'aria-labelledby': "MobilizonLogoTitle"
},
svgo: {
plugins: [
{
removeTitle: false,
},
{
cleanupIDs: false
}
]
}
});
}
};