Skip to content

Instantly share code, notes, and snippets.

@337547038
Created November 28, 2017 07:49
Show Gist options
  • Save 337547038/b92ffe1804d70d5c4b1dc2ac8fa3bbb7 to your computer and use it in GitHub Desktop.
Save 337547038/b92ffe1804d70d5c4b1dc2ac8fa3bbb7 to your computer and use it in GitHub Desktop.
1、npm install --save-dev sass-loader node-sass
2、build/webpack.base.conf.js添加loader;
   {
test: /\.scss$/,
loader: 'style!css!sass?sourceMap'
}
3、在App.vue里引入;
  <style lang="scss">
  @import "sass/index.scss";
  </style>
4、生成soureMap可在config/index.js里设置cssSourceMap:true
Vue.js v2.5.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment