redux-devtools/extension/webpack/dev.config.babel.js
Nathan Bierema 6cc517d97e
Refactor extension directory structure (#1248)
* Move background to top-level

* Move devpanel to top-level

* Move devtools to top-level

* Move options to top-level

* Move window to top-level

* Move chromeApiMock to top-level

* Move manifests to top-level

* Move contentScript to top-level

* Move pageScript to top-level

* Update tests

* Update Webpack config

* Fix path
2022-10-10 13:05:28 -04:00

24 lines
535 B
JavaScript

import path from 'path';
import webpack from 'webpack';
import baseConfig from './base.config';
let config = baseConfig({
mode: 'development',
inputExtra: {
page: [path.join(__dirname, '../src/pageScript')],
},
output: { path: path.join(__dirname, '../dev') },
globals: {
'process.env': {
NODE_ENV: '"development"',
},
},
plugins: [new webpack.NoEmitOnErrorsPlugin()],
copy: true,
manifestJsonPath: path.join(__dirname, '../chrome/manifest.json'),
});
config.watch = true;
export default config;