One , Install corresponding dependencies node modular :
npm install node-sass --save-dev npm install sass-loader --save-dev
Two , open webpack.base.config.js stay loaders Add in :
{ test: /\.scss$/, loaders: ["style", "css", "sass"] } module: { rules: [ {
test: /\.vue$/, loader: 'vue-loader', options: vueLoaderConfig }, { test:
/\.js$/, loader: 'babel-loader', include: [resolve('src'), resolve('test'),
resolve('node_modules/webpack-dev-server/client')] }, { test:
/\.(png|jpe?g|gif|svg)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]') } }, { test: /\.scss$/,
loaders: ["style", "css", "sass"] }, { test:
/\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, loader: 'url-loader', options: {
limit: 10000, name: utils.assetsPath('media/[name].[hash:7].[ext]') } }, {
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, loader: 'url-loader', options: { limit:
10000, name: utils.assetsPath('fonts/[name].[hash:7].[ext]') } } ] }
Three , In use scss Write it in the right place :
<style lang="scss" scoped=""></style>
 

Technology
©2020 ioDraw All rights reserved
Using genetic algorithm to solve function optimization problem ( Single target )CLion Novice step on the pit :CMake project is not loaded Google says home office affects work efficiency !2021 Return to offline office in 2010 Data analysis interview experience ( Give yourself a process of carding )C Language implementation of simple minesweeping ( It's all dry goods , Novice Xiaobai must see )Python Basic knowledge !!C Language implementation of minesweeping game Valentine's Day , rose , The one in your heart ~ Operation and maintenance work Python Painting cherry blossoms