12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- module.exports = {
- parallel: false,
- productionSourceMap: false,
- outputDir: 'page_docs',
- publicPath: process.env.VUE_APP_BASE_PUBLIC,
- lintOnSave: true,
- devServer: {
- port: '8080',
- disableHostCheck: true,
- proxy: {
- '^/jydocs': {
- target: 'http://web2-jytest.jydev.jianyu360.com',
- // target: 'http://192.168.20.180:821',
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/jydocs': '/jydocs'
- }
- },
- '^/jyintegral': {
- target: 'http://web2-jytest.jydev.jianyu360.com',
- // target: 'http://192.168.20.145:820',
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/jyintegral': '/jyintegral'
- }
- }
- }
- },
- css: {
- loaderOptions: {
- sass: {
- prependData: '@import "@/assets/style/_mixin.scss";@import "@/assets/style/_variables.scss";'
- }
- }
- },
- chainWebpack: config => {
- if (!process.env.VUE_APP_ALONE) {
- config.devServer.set('inline', false)
- config.devServer.set('hot', true)
- if (process.env.NODE_ENV !== 'production') {
- config.output.filename('js/[name].js')
- }
- config.externals(['vue', 'vue-router'])
- }
- },
- filenameHashing: false
- }
|