File tree Expand file tree Collapse file tree 6 files changed +15
-10
lines changed Expand file tree Collapse file tree 6 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 44 "description" : " SASS loader for Webpack" ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "test" : " ./node_modules/webpack/bin/webpack.js -w --config=test/webpack.config.js"
7+ "test" : " rm test/output/* && node ./node_modules/webpack/bin/webpack.js -d -w --config=test/webpack.config.js"
88 },
99 "keywords" : [
1010 " sass" ,
2323 "sass-graph" : " ^0.1.2"
2424 },
2525 "devDependencies" : {
26- "css-loader" : " ^0.6.12 " ,
27- "webpack" : " ^1.2 .0"
26+ "css-loader" : " ^0.9.0 " ,
27+ "webpack" : " ^1.4 .0"
2828 }
2929}
Original file line number Diff line number Diff line change 1- console . log ( require ( 'css!../../index.js!./index.scss' ) ) ;
1+ var scss = require ( 'css!../../index.js!./index.scss' ) ;
2+ var sass = require ( 'css!../../index.js?indentedSyntax=sass!./index.sass' ) ;
3+
4+ console . log ( scss , sass ) ;
Original file line number Diff line number Diff line change 1+ body
2+ margin : 10px
3+ color : green
Original file line number Diff line number Diff line change 11body {
22 margin : 10px ;
3+ color : blue ;
34}
45
5- @import " include " ;
6+ @import " _include " ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,15 +3,14 @@ var webpack = require('webpack');
33
44module . exports = {
55 entry : {
6- test : path . join ( __dirname , "src/ entry.js" )
6+ test : path . join ( __dirname , "src" , " entry.js")
77 } ,
88 output : {
9- path : __dirname ,
10- publicPath : "/" ,
9+ path : path . join ( __dirname , "output" ) ,
1110 filename : "[name].js" ,
1211 sourceMapFilename : "[file].map"
1312 } ,
1413 plugins : [
15- new webpack . optimize . UglifyJsPlugin ( )
14+ // new webpack.optimize.UglifyJsPlugin()
1615 ]
1716} ;
You can’t perform that action at this time.
0 commit comments