npm、yarn 和 pnpm 淘宝镜像
// 设置
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
pnpm config set registry https://registry.npmmirror.com
// 查看
npm config get registry
yarn config get registry
pnpm config get registry
node-sass 淘宝镜像设置
使用sass替代node-sass
npm i sass -D
在webpack中配置
config.module
.rule('sass-loader')
.test(/\.(sa|sc)ss$/)
.use('sass-loader')
.loader('sass-loader')
.options({
implementation: require('sass'),
})
.end()