File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ tasks :
2
+ - init : yarn install && yarn run builds
Original file line number Diff line number Diff line change 16
16
"prebump" : " run-s lint test" ,
17
17
"prepublishOnly" : " yarn run build" ,
18
18
"test" : " cross-env BABEL_OUTPUT=commonjs jest" ,
19
- "start" : " webpack serve --allowed-hosts all --static-directory examples --port 8000 " ,
19
+ "start" : " webpack serve" ,
20
20
"website" : " run-s website:clean website:build website:redirect" ,
21
21
"website:clean" : " rimraf examples/dist" ,
22
22
"website:build" : " cross-env BABEL_TARGET=examples NODE_ENV=production webpack" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const isDev = process.env.NODE_ENV !== 'production';
10
10
11
11
const plugins = [
12
12
new HtmlWebpackPlugin ( {
13
- filename : 'index.html' ,
14
13
inject : true ,
15
14
template : path . resolve ( sourceDirectory , 'index.html' ) ,
16
15
minify : {
@@ -44,7 +43,14 @@ module.exports = {
44
43
chunkFilename : 'chunk-[chunkhash].js' ,
45
44
filename : '[name]-[chunkhash].js' ,
46
45
hashDigestLength : 8 ,
47
- publicPath : './' ,
46
+ publicPath : '/' ,
47
+ } ,
48
+ devServer : {
49
+ static : {
50
+ directory : targetDirectory ,
51
+ } ,
52
+ allowedHosts : [ 'localhost' , '.gitpod.io' ] ,
53
+ port : 8000 ,
48
54
} ,
49
55
module : {
50
56
rules : [
You can’t perform that action at this time.
0 commit comments