mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-25 15:40:06 +03:00
chore(inspector-monitor): improve demo webpack config
This commit is contained in:
parent
4c8a6c928a
commit
7a579532bf
|
@ -17,7 +17,7 @@ module.exports = {
|
|||
'./demo/src/js/index',
|
||||
],
|
||||
output: {
|
||||
path: path.join(__dirname, 'demo/dist'),
|
||||
path: path.join(__dirname, './dist'),
|
||||
filename: 'js/bundle.js',
|
||||
},
|
||||
module: {
|
||||
|
@ -60,5 +60,5 @@ module.exports = {
|
|||
},
|
||||
historyApiFallback: true,
|
||||
},
|
||||
devtool: 'eval-source-map',
|
||||
devtool: isProduction ? 'sourcemap' : 'eval-source-map',
|
||||
};
|
||||
|
|
|
@ -24,10 +24,7 @@ function getDebugSessionKey() {
|
|||
return matches && matches.length > 0 ? matches[1] : null;
|
||||
}
|
||||
|
||||
const ROOT =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? '/redux-devtools-inspector-monitor/'
|
||||
: '/';
|
||||
const ROOT = '/';
|
||||
|
||||
const DevTools = getDevTools(window.location);
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"scripts": {
|
||||
"start": "webpack-dev-server --config demo/config/webpack.config.ts",
|
||||
"stats": "webpack --profile --json > stats.json",
|
||||
"build:demo": "NODE_ENV=production webpack -p",
|
||||
"build:demo": "cross-env NODE_ENV=production webpack -p --config demo/config/webpack.config.ts",
|
||||
"build": "npm run build:types && npm run build:js",
|
||||
"build:types": "tsc --emitDeclarationOnly",
|
||||
"build:js": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
|
||||
|
|
Loading…
Reference in New Issue
Block a user