mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +00:00
webpack dev server configured with react-router
This commit is contained in:
parent
11a7ed572b
commit
f09cb42160
1 changed files with 5 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ module.exports = {
|
||||||
entry: './src/index.js',
|
entry: './src/index.js',
|
||||||
output: {
|
output: {
|
||||||
path: path.join(__dirname, 'dist'),
|
path: path.join(__dirname, 'dist'),
|
||||||
filename: 'bundle.js'
|
filename: 'bundle.js',
|
||||||
|
publicPath: '/'
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
|
@ -52,6 +53,9 @@ module.exports = {
|
||||||
'stremio-common': path.resolve(__dirname, 'src/common')
|
'stremio-common': path.resolve(__dirname, 'src/common')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
devServer: {
|
||||||
|
historyApiFallback: true
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new HtmlWebPackPlugin({
|
new HtmlWebPackPlugin({
|
||||||
template: './src/index.html'
|
template: './src/index.html'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue