mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 09:58:18 -07:00
Fix webpack dev server checks
This commit is contained in:
parent
eccd79c4e0
commit
7b797aff43
@ -2,6 +2,7 @@ const path = require('path');
|
||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const { DefinePlugin } = require('webpack');
|
||||
|
||||
const Assets = [
|
||||
'native-promise-only/npo.js',
|
||||
@ -30,6 +31,9 @@ module.exports = {
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new DefinePlugin({
|
||||
__WEBPACK_SERVE__: JSON.stringify(!!process.env.WEBPACK_SERVE)
|
||||
}),
|
||||
new CleanWebpackPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
filename: 'index.html',
|
||||
|
@ -1,6 +1,5 @@
|
||||
const common = require('./webpack.common');
|
||||
const { merge } = require('webpack-merge');
|
||||
const { DefinePlugin } = require('webpack');
|
||||
|
||||
module.exports = merge(common, {
|
||||
// In order for live reload to work we must use "web" as the target not "browserlist"
|
||||
@ -24,11 +23,6 @@ module.exports = merge(common, {
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new DefinePlugin({
|
||||
__WEBPACK_SERVE__: true
|
||||
})
|
||||
],
|
||||
devServer: {
|
||||
compress: true,
|
||||
client: {
|
||||
|
Loading…
Reference in New Issue
Block a user