diff --git a/quasar.conf.js b/quasar.conf.js index 7b11c66d1..c09bf7dc3 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -1,6 +1,7 @@ // Configuration for your app // https://quasar.dev/quasar-cli/quasar-conf-js require('dotenv').config() +const CopyWebpackPlugin = require('copy-webpack-plugin') const path = require('path') module.exports = function (ctx) { @@ -142,6 +143,11 @@ module.exports = function (ctx) { type: 'javascript/auto' }) + cfg.plugins.push(new CopyWebpackPlugin( + [{ from: './src/statics/*.json', to: './', force: true, flatten: true }], + { copyUnmodified: true } + )) + cfg.module.rules.push({ enforce: 'pre', test: /\.(js|vue)$/,