How to disable filename hashing
-
Hi, using vue cli, I could disable filename hashing by setting filenameHashing: false in vue.config.js. May I know how is this achieved in quasar? I have tried
extendWebpack (cfg) {
cfg.output.chunkFilename = ‘js/[name].js’
}but this only removes the contenthash of some js files, while runtime.js and css files still contain the contenthash
-
For those interested, I found the solution to disable runtime.js caching too:
extendWebpack (cfg) {
cfg.output.filename = ‘js/[name].js’
cfg.output.chunkFilename = ‘js/[name].js’
}now left with CSS caching, still struggling. Any pointer?
-
OK, here’s the complete solution for those who may be interested:
chainWebpack (chain, { isServer, isClient }) { chain .output .filename('js/[name].js') .chunkFilename('js/[name].js') chain .plugin('mini-css-extract') .tap(args => [{ filename: 'css/[name].css' }, ...args]); },
-
@kc thanks, moving thread to tips.