chore(webpack): Remove outdated config for hmr
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
backportbot-nextcloud[bot]
parent
083db2f3b6
commit
0cf40ae9af
@@ -1,26 +0,0 @@
|
|||||||
const webpack = require('webpack');
|
|
||||||
const merge = require('webpack-merge');
|
|
||||||
const dev = require('./webpack.dev.js');
|
|
||||||
|
|
||||||
module.exports = merge(dev, {
|
|
||||||
devServer: {
|
|
||||||
hot: true,
|
|
||||||
port: 3000,
|
|
||||||
/**
|
|
||||||
* This makes sure the main entrypoint is written to disk so it is
|
|
||||||
* loaded by Nextcloud though our existing addScript calls
|
|
||||||
*/
|
|
||||||
writeToDisk: (filePath) => {
|
|
||||||
return /deck\.js$/.test(filePath);
|
|
||||||
},
|
|
||||||
headers: {
|
|
||||||
'Access-Control-Allow-Origin': '*'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new webpack.DefinePlugin({
|
|
||||||
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
|
|
||||||
'process.env.HOT': true
|
|
||||||
})
|
|
||||||
]
|
|
||||||
})
|
|
||||||
Reference in New Issue
Block a user