2024-04-26 21:56:56 +02:00
|
|
|
const path = require('path')
|
|
|
|
|
|
|
|
module.exports = {
|
2024-04-26 21:57:05 +02:00
|
|
|
devServer: {
|
|
|
|
allowedHosts: "all",
|
|
|
|
},
|
2024-04-26 21:56:56 +02:00
|
|
|
css: {
|
|
|
|
loaderOptions: {
|
|
|
|
css: {
|
|
|
|
url: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
chainWebpack: config => {
|
|
|
|
config.plugin('copy').tap(args => {
|
|
|
|
const UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
|
|
|
|
const publicDir = path.resolve(process.VUE_CLI_SERVICE.context, 'public').replace(/\\/g, '/');
|
|
|
|
const escapePublicDir= publicDir.replace(UNESCAPED_GLOB_SYMBOLS_RE, '\\$2');
|
|
|
|
args[0].patterns[0].globOptions.ignore = args[0].patterns[0].globOptions.ignore.map(i => i.replace(publicDir, escapePublicDir));
|
|
|
|
return args;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|