diff --git a/quasar.config.js b/quasar.config.js index 9abbcd7c..84e934d1 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -8,7 +8,6 @@ // Configuration for your app // https://v2.quasar.dev/quasar-cli-webpack/quasar-config-js -const ESLintPlugin = require('eslint-webpack-plugin'); const path = require('path'); const { configure } = require('quasar/wrappers'); @@ -68,11 +67,7 @@ module.exports = configure(function (ctx) { // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain chainWebpack(chain) { - chain - .plugin('eslint-webpack-plugin') - .use(ESLintPlugin, [{ extensions: ['js', 'vue'] }]); - chain.resolve.alias - .set('@', path.resolve(__dirname, 'src')); + chain.resolve.alias.set('@', path.resolve(__dirname, 'src')); chain.module .rule('i18n-resource') .test(/\.(json5?|ya?ml)$/) @@ -96,14 +91,14 @@ module.exports = configure(function (ctx) { type: 'http' }, port: 8080, - open: false, + open: true, // static: __dirname, headers: { 'Access-Control-Allow-Origin': '*' }, // stats: { chunks: false }, proxy: { - '/api': 'http://salix-back:3000', + '/api': 'http://localhost:3000', '/': { - target: 'http://hedera-back:3002', + target: 'http://localhost:3002', bypass: req => (req.path !== '/' ? req.path : null) } } @@ -144,12 +139,6 @@ module.exports = configure(function (ctx) { maxAge: 1000 * 60 * 60 * 24 * 30, // Tell browser when a file from the server should expire from cache (in ms) - chainWebpackWebserver(chain) { - chain - .plugin('eslint-webpack-plugin') - .use(ESLintPlugin, [{ extensions: ['js'] }]); - }, - middlewares: [ ctx.prod ? 'compression' : '', 'render' // keep this as last one @@ -164,11 +153,7 @@ module.exports = configure(function (ctx) { // for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts]) // if using workbox in InjectManifest mode - chainWebpackCustomSW(chain) { - chain - .plugin('eslint-webpack-plugin') - .use(ESLintPlugin, [{ extensions: ['js'] }]); - }, + chainWebpackCustomSW(chain) {}, manifest: { name: 'Hedera', @@ -237,21 +222,9 @@ module.exports = configure(function (ctx) { // https://www.electron.build/configuration/configuration appId: 'hedera-web' - }, + } // "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain - - chainWebpackMain(chain) { - chain - .plugin('eslint-webpack-plugin') - .use(ESLintPlugin, [{ extensions: ['js'] }]); - }, - - chainWebpackPreload(chain) { - chain - .plugin('eslint-webpack-plugin') - .use(ESLintPlugin, [{ extensions: ['js'] }]); - } } }; });