123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- const path = require('path')
- const webpack = require('webpack')
- function resolve (dir) {
- return path.join(__dirname, dir)
- }
- module.exports = {
-
-
- configureWebpack: {
- plugins: [
-
- new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)
- ]
- },
- chainWebpack: (config) => {
- config.resolve.alias
- .set('@$', resolve('src'))
- const svgRule = config.module.rule('svg')
- svgRule.uses.clear()
- svgRule
- .oneOf('inline')
- .resourceQuery(/inline/)
- .use('vue-svg-icon-loader')
- .loader('vue-svg-icon-loader')
- .end()
- .end()
- .oneOf('external')
- .use('file-loader')
- .loader('file-loader')
- .options({
- name: 'assets/[name].[hash:8].[ext]'
- })
-
- },
- css: {
- loaderOptions: {
- less: {
- modifyVars: {
-
-
- },
- javascriptEnabled: true
- }
- }
- },
- devServer: {
-
- port: 8000
-
-
-
-
-
-
-
-
- },
-
- productionSourceMap: false,
- lintOnSave: undefined,
-
- transpileDependencies: []
- }
|