1 Star 0 Fork 8

devopsleague/neatlogic-ui

forked from NeatLogic/neatlogic-ui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
zenkiray 提交于 2023-05-15 17:54 . 升级webpack
/* eslint-disable */
const webpack = require('webpack');
const path = require('path');
function resolve(dir) {
return path.join(__dirname, dir);
}
module.exports = {
css: {
loaderOptions: {
less: {
lessOptions: {
javascriptEnabled: true
}
}
}
},
publicPath: '/neatlogic/',
assetsDir: 'resource',
productionSourceMap: false,
runtimeCompiler: true,
configureWebpack: {
performance: {
hints: false
}
},
chainWebpack: config => {
config.module.rule('vue').use('vue-path-injector').loader(require.resolve('./vue-path-injector.js')).after('vue-loader').end();
/*config.module
.rule('images')
.use('url-loader')
.loader('url-loader')
.tap(options => Object.assign(options, { limit: 102400 }));*/
config.resolve.alias.set('@static', resolve('static'));
config.resolve.alias.set('@component', resolve('component'));
config.resolve.alias.set('@directives', resolve('directives'));
config.resolve.alias.set('@filters', resolve('filters'));
config.resolve.alias.set('@mixins', resolve('mixins'));
config.resolve.alias.set('@api', resolve('api'));
config.resolve.alias.set('@iview', resolve('iview'));
},
devServer: {
open: true,
port: '8080',
https: false,
hot: false
//disableHostCheck: true
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/devopsleague/neatlogic-ui.git
[email protected]:devopsleague/neatlogic-ui.git
devopsleague
neatlogic-ui
neatlogic-ui
release

搜索帮助