mirror of
https://github.com/transmission/transmission
synced 2024-12-23 16:24:02 +00:00
chore: get rid of webpack error while creating source map (#4058)
This commit is contained in:
parent
72ab5a85be
commit
745c884774
1 changed files with 5 additions and 8 deletions
|
@ -40,7 +40,7 @@ const config = {
|
|||
output: {
|
||||
filename: 'transmission-app.js',
|
||||
path: path.resolve(__dirname, 'public_html'),
|
||||
sourceMapFilename: 'transmission-app.js.map'
|
||||
sourceMapFilename: '[file].map',
|
||||
},
|
||||
plugins: [
|
||||
new MiniCssExtractPlugin({
|
||||
|
@ -52,7 +52,7 @@ const config = {
|
|||
}),
|
||||
],
|
||||
resolve: {
|
||||
extensions: ['.js', '.scss']
|
||||
extensions: ['.js', '.scss'],
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -60,18 +60,15 @@ if (mode === 'development') {
|
|||
config.devServer = {
|
||||
compress: true,
|
||||
historyApiFallback: {
|
||||
rewrites: [
|
||||
{ from: '/transmission/web', to: '/' },
|
||||
]
|
||||
rewrites: [{ from: '/transmission/web', to: '/' }],
|
||||
},
|
||||
hot: true,
|
||||
port: devPort,
|
||||
proxy: {
|
||||
'/rpc': rpcUrl
|
||||
'/rpc': rpcUrl,
|
||||
},
|
||||
static: './public_html'
|
||||
static: './public_html',
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = config;
|
||||
|
||||
|
|
Loading…
Reference in a new issue