File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 18
18
rm -rf $(BUILD ) $(DIST )
19
19
20
20
dev :
21
- echo ' Open http://localhost:4002'
22
- @$(BIN ) /webpack-dev-server --config webpack-dev-server.config.js --hot --progress --colors --port 4002 --content-base .
21
+ @$(BIN ) /webpack-dev-server --config webpack-dev-server.config.js --hot --progress --colors --port 4002 --open --content-base .
23
22
24
23
# Allows usage of `make install`, `make link`
25
24
install link :
Original file line number Diff line number Diff line change 1
1
< html >
2
2
< head >
3
- < script src ="http://localhost:4002 /bundle.js "> </ script >
3
+ < script src ="/bundle.js "> </ script >
4
4
< title > RGL Example</ title >
5
5
</ head >
6
6
< body >
7
7
< h3 > React-Grid-Layout Dev</ h3 >
8
8
< p > Try dragging the elements around.</ p >
9
- < p > If you don't see any content, run webpack (< span style ="font-family:monospace "> npm run dev</ span > )
9
+ < p > If you don't see any content, run webpack (< span style ="font-family:monospace "> npm run dev</ span > )
10
10
and load this file from the server it opens.</ p >
11
11
< div id ="content "> </ div >
12
12
</ body >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ module.exports = {
5
5
context : __dirname ,
6
6
entry : "./test/dev-hook.jsx" ,
7
7
output : {
8
- path : path . join ( __dirname , "dist" ) ,
8
+ path : '/' ,
9
9
filename : "bundle.js" ,
10
10
sourceMapFilename : "[file].map" ,
11
11
} ,
@@ -40,7 +40,7 @@ module.exports = {
40
40
] ,
41
41
devtool : "eval" ,
42
42
devServer : {
43
- publicPath : '/examples/ ' ,
43
+ publicPath : '/' ,
44
44
compress : true ,
45
45
port : 4002
46
46
} ,
You can’t perform that action at this time.
0 commit comments