File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,21 +117,21 @@ const buildConfig = baseConfig.clone()
117117 chunks : [ 'gui' ] ,
118118 template : 'src/playground/index.ejs' ,
119119 title : 'Smalruby' ,
120- originTrials : JSON . parse ( fs . readFileSync ( 'origin-trials.json' ) )
120+ originTrials : JSON . parse ( fs . readFileSync ( path . resolve ( __dirname , 'origin-trials.json' ) ) )
121121 } ) )
122122 . addPlugin ( new HtmlWebpackPlugin ( {
123123 chunks : [ 'gui' ] ,
124124 template : 'src/playground/index.ejs' ,
125125 filename : 'ja.html' ,
126126 title : 'スモウルビー' ,
127- originTrials : JSON . parse ( fs . readFileSync ( 'origin-trials.json' ) )
127+ originTrials : JSON . parse ( fs . readFileSync ( path . resolve ( __dirname , 'origin-trials.json' ) ) )
128128 } ) )
129129 . addPlugin ( new HtmlWebpackPlugin ( {
130130 chunks : [ 'player' ] ,
131131 filename : 'player.html' ,
132132 template : 'src/playground/index.ejs' ,
133133 title : 'Smalruby: Player Example' ,
134- originTrials : JSON . parse ( fs . readFileSync ( 'origin-trials.json' ) )
134+ originTrials : JSON . parse ( fs . readFileSync ( path . resolve ( __dirname , 'origin-trials.json' ) ) )
135135 } ) )
136136 . addPlugin ( new CopyWebpackPlugin ( {
137137 patterns : [
You can’t perform that action at this time.
0 commit comments