From f41b9b0f5445517fccd3d326adf642f6e75464b8 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 24 Dec 2019 19:21:16 +0000 Subject: [PATCH] Feature/metadata2 --- quasar.conf.js | 6 ++++++ 1 file changed, 6 insertions(+) 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)$/,