123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- const path = require('path')
- function resolve (dir) {
- return path.join(__dirname, dir)
- }
- module.exports = {
- productionSourceMap: false,
- publicPath: './',
- outputDir: 'dist',
- configureWebpack: {
- optimization: {
- splitChunks: {
- cacheGroups: {
- app: {
- chunks: 'all',
- name: 'main',
- test: /[\\/]src[\\/](.*)[\\/]/
- },
- vendor: {
- test: /[\\/]node_modules[\\/][\\/]/,
- name: 'vendor',
- chunks: 'all'
- }
- }
- }
- }
- },
- css: {
- loaderOptions: {
- less: {
- modifyVars: {},
- javascriptEnabled: true
- }
- }
- },
- devServer: {
- open: true,
-
- host: '0.0.0.0',
- port: 8081,
- https: false,
- hotOnly: false,
- proxy: {
-
- '/api': {
-
-
-
-
- target: 'http://localhost:8888/',
-
-
- changeOrigin: true,
- logLevel: 'debug',
- pathRewrite: {
- '^/api': ''
- }
- }
- }
- },
- chainWebpack: config => {
-
- config.resolve.alias.set('@$', resolve('src'))
- },
- assetsDir: 'assets',
- runtimeCompiler: true,
- transpileDependencies: [
- 'vuetify'
- ]
- }
|