1 Star 0 Fork 6

cgb-study/simpleComment

forked from SNFocus/simpleComment 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 804 Bytes
一键复制 编辑 原始数据 按行查看 历史
SNFocus 提交于 2020-05-21 16:57 +08:00 . fix(many files): 修复组件打包后无效
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path')
const resolve = dir => path.join(__dirname, dir)
module.exports = {
publicPath: './',
devServer: {
port: 8089
},
css: {
loaderOptions: {
sass: {
// @/ 是 src/ 的别名
// 所以这里假设你有 `src/variables.sass` 这个文件
// 注意:在 sass-loader v7 中,这个选项名是 "data"
prependData: `@import "~@/assets/style/BaseVariable.sass";
@import "~@/assets/style/BaseStyle.sass";`
}
}
},
chainWebpack: (config) => {
config.resolve.alias
.set('@', resolve('src'))
.set('@assets', resolve('src/assets'))
.set('@components', resolve('src/components'))
.set('@views', resolve('src/views'))
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/cgb-study/simpleComment.git
git@gitee.com:cgb-study/simpleComment.git
cgb-study
simpleComment
simpleComment
master

搜索帮助