1 Star 0 Fork 2

冰糖雪梨/share

forked from 冰糖雪梨/muying-h5 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vue.config.js 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
冰糖雪梨 提交于 2023-01-30 18:00 . 变更 node-sass 为 dart-sass
'use strict'
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
lintOnSave: false,
productionSourceMap: false,
outputDir: "html",
publicPath: "/",
devServer: {
open: true,
port: 8102
},
chainWebpack: (config) => {
config.module
.rule("scss")
.oneOf("vue")
.use("px2rem")
.loader("px2rem-loader")
.before("postcss-loader")
.options({
remUnit: 75,
remPrecision: 8,
})
.end()
.rule("js")
.include.add("/packages")
.end()
.use("babel")
.loader("babel-loader")
.tap((options) => {
return options;
});
},
configureWebpack: {
// provide the app's title in webpack's name field, so that
// it can be accessed in index.html to inject the correct title.
resolve: {
alias: {
'@': resolve('src'),
'images': resolve('src/assets/images'),
}
}
},
css: {
extract: true,
sourceMap: false,
requireModuleExtension: true,
loaderOptions: {
// css: {
// // 这里的选项会传递给 css-loader
// importLoaders: 1,
// },
sass: {
additionalData: `@import "@/assets/styles/variables.scss";`,
},
},
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ixook/share.git
git@gitee.com:ixook/share.git
ixook
share
share
main

搜索帮助