Business background
use mpvue
for the first time sass before, but it"s all configured by someone else.
has not used webpack
my actions
- initialize the project according to
mpvuetutorial - copy the sample file
pages/counterispages/counter2 - modify
pages/counter2/index.vueFile - add
styletag tolang=sassinside. - then in the command line
npm run dev
the file cannot be compiled at this time
question
should be mpvue is not configured sass compilation
I"m going to learn webpack and vue-cli , but these two things feel like I can"t get into the door all week
, so how do you configure sass to compile automatically in mpvue ?
solve
install the dependency package directly with npm . After installation, it will compile automatically without configuration.
npm i sass-loader -D / npm i node-sass -D
reference: https://github.com/Meituan-Di.
