How to build a Vue component library for the team, problems encountered when npm run build:css 3

1. File name gulpfile.js

Replace const sass = require('gulp-sass') with const sass = require('gulp-sass')(require('sass')), this step is to convert the sass file into a css file

2. Install sass and gulp-sass

npm i sass gulp-sass -D

3. Repackage again, at this time a css file is generated under dist

npm run build:css

Guess you like

Origin blog.csdn.net/weixin_46501763/article/details/129779985