Skip to content

Commit 3fbf043

Browse files
committed
fix simple view on build
1 parent 5da8e4f commit 3fbf043

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

config-overrides.js

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,15 @@ module.exports = function override (config, env) {
3939
})
4040
)
4141
}
42-
} else {
43-
// add another output file at localhost:3000/foobar/
44-
config.plugins.splice(2, 0,
45-
new HtmlWebpackPlugin({
46-
inject: true,
47-
template: path.resolve(__dirname, 'public', 'index.html'),
48-
filename: 'foobar/index.html'
49-
})
50-
)
51-
config.plugins.splice(2, 0,
52-
new HtmlWebpackPlugin({
53-
inject: true,
54-
template: path.resolve(__dirname, 'public', 'simple/index.html'),
55-
filename: 'simple/index.html'
56-
})
57-
)
5842
}
43+
// add another output file at /simple/
44+
config.plugins.splice(2, 0,
45+
new HtmlWebpackPlugin({
46+
inject: true,
47+
template: path.resolve(__dirname, 'public', 'simple/index.html'),
48+
filename: 'simple/index.html'
49+
})
50+
)
5951
// console.dir(config, { depth: 10, colors: true })
6052
return config
6153
}

0 commit comments

Comments
 (0)