revert quasar.config.js
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
parent
e1e87cfcd6
commit
d627bdb59a
|
@ -8,7 +8,6 @@
|
||||||
// Configuration for your app
|
// Configuration for your app
|
||||||
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-js
|
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-js
|
||||||
|
|
||||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const { configure } = require('quasar/wrappers');
|
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
|
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
||||||
|
|
||||||
chainWebpack(chain) {
|
chainWebpack(chain) {
|
||||||
chain
|
chain.resolve.alias.set('@', path.resolve(__dirname, 'src'));
|
||||||
.plugin('eslint-webpack-plugin')
|
|
||||||
.use(ESLintPlugin, [{ extensions: ['js', 'vue'] }]);
|
|
||||||
chain.resolve.alias
|
|
||||||
.set('@', path.resolve(__dirname, 'src'));
|
|
||||||
chain.module
|
chain.module
|
||||||
.rule('i18n-resource')
|
.rule('i18n-resource')
|
||||||
.test(/\.(json5?|ya?ml)$/)
|
.test(/\.(json5?|ya?ml)$/)
|
||||||
|
@ -96,14 +91,14 @@ module.exports = configure(function (ctx) {
|
||||||
type: 'http'
|
type: 'http'
|
||||||
},
|
},
|
||||||
port: 8080,
|
port: 8080,
|
||||||
open: false,
|
open: true,
|
||||||
// static: __dirname,
|
// static: __dirname,
|
||||||
headers: { 'Access-Control-Allow-Origin': '*' },
|
headers: { 'Access-Control-Allow-Origin': '*' },
|
||||||
// stats: { chunks: false },
|
// stats: { chunks: false },
|
||||||
proxy: {
|
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)
|
bypass: req => (req.path !== '/' ? req.path : null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -144,12 +139,6 @@ module.exports = configure(function (ctx) {
|
||||||
maxAge: 1000 * 60 * 60 * 24 * 30,
|
maxAge: 1000 * 60 * 60 * 24 * 30,
|
||||||
// Tell browser when a file from the server should expire from cache (in ms)
|
// 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: [
|
middlewares: [
|
||||||
ctx.prod ? 'compression' : '',
|
ctx.prod ? 'compression' : '',
|
||||||
'render' // keep this as last one
|
'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])
|
// for the custom service worker ONLY (/src-pwa/custom-service-worker.[js|ts])
|
||||||
// if using workbox in InjectManifest mode
|
// if using workbox in InjectManifest mode
|
||||||
|
|
||||||
chainWebpackCustomSW(chain) {
|
chainWebpackCustomSW(chain) {},
|
||||||
chain
|
|
||||||
.plugin('eslint-webpack-plugin')
|
|
||||||
.use(ESLintPlugin, [{ extensions: ['js'] }]);
|
|
||||||
},
|
|
||||||
|
|
||||||
manifest: {
|
manifest: {
|
||||||
name: 'Hedera',
|
name: 'Hedera',
|
||||||
|
@ -237,21 +222,9 @@ module.exports = configure(function (ctx) {
|
||||||
// https://www.electron.build/configuration/configuration
|
// https://www.electron.build/configuration/configuration
|
||||||
|
|
||||||
appId: 'hedera-web'
|
appId: 'hedera-web'
|
||||||
},
|
}
|
||||||
|
|
||||||
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
// "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'] }]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue