File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 14
14
< div id ="content ">
15
15
< h1 > If you can see this, something is broken (or JS is not enabled)!!.</ h1 >
16
16
</ div >
17
+ < link rel ="stylesheet " href ="/dist/styles.css ">
17
18
< script type ="text/javascript " src ="/dist/main.js "> </ script >
18
19
</ body >
19
20
</ html >
Original file line number Diff line number Diff line change 31
31
"eslint" : " ~1.10.3" ,
32
32
"eslint-loader" : " ~1.1.1" ,
33
33
"eslint-plugin-react" : " ~3.11.3" ,
34
+ "extract-text-webpack-plugin" : " ~1.0.1" ,
34
35
"file-loader" : " ~0.8.5" ,
35
36
"json-loader" : " ~0.5.1" ,
36
37
"less" : " ~2.6.0" ,
Original file line number Diff line number Diff line change 3
3
4
4
var path = require ( 'path' ) ;
5
5
var webpack = require ( 'webpack' ) ;
6
+ var ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
6
7
7
8
8
9
// Detect if we're running webpack dev server or building a distribution.
@@ -11,7 +12,8 @@ var devServer = path.basename(require.main.filename) === 'webpack-dev-server.js'
11
12
12
13
var config = {
13
14
plugins : [
14
- new webpack . IgnorePlugin ( / ^ \. \/ l o c a l e $ / , / m o m e n t $ / )
15
+ new webpack . IgnorePlugin ( / ^ \. \/ l o c a l e $ / , / m o m e n t $ / ) ,
16
+ new ExtractTextPlugin ( 'styles.css' )
15
17
] ,
16
18
17
19
entry : './scripts/init.jsx' ,
@@ -41,10 +43,10 @@ var config = {
41
43
loader : 'babel-loader?stage=1&optional=runtime'
42
44
} , {
43
45
test : / \. c s s $ / ,
44
- loader : 'style-loader! css-loader'
46
+ loader : ExtractTextPlugin . extract ( 'style-loader' , ' css-loader')
45
47
} , {
46
48
test : / \. l e s s $ / ,
47
- loader : 'style-loader! css-loader!less-loader'
49
+ loader : ExtractTextPlugin . extract ( 'style-loader' , ' css-loader!less-loader')
48
50
} , {
49
51
test : / \. ( p n g | j p g ) $ / ,
50
52
loader : 'url-loader?limit=8192'
You can’t perform that action at this time.
0 commit comments