Last active
October 4, 2016 05:00
-
-
Save kenichi-odo/1b04afba021e39462d7cd3514ea79d18 to your computer and use it in GitHub Desktop.
webpackでPostCSSを使ってSassをコンパイルする設定 ref: http://qiita.com/kenichi_odo/items/308328e78737756795e2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo npm i --save-dev postcss-loader sugarss precss autoprefixer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import autoprefixer from 'autoprefixer'; | |
import precss from 'precss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
module: { | |
loaders: [ | |
{ | |
test: /\.sass$/, | |
loaders: ['style', 'css', 'postcss?parser=sugarss'], | |
}, | |
], | |
}, | |
postcss: [autoprefixer({ browsers: ['IE 9', 'IE 10', 'IE 11', 'last 2 versions'] }), precss], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment