2020-10-26 15:18:23 +03:00
|
|
|
import path from 'path';
|
|
|
|
import webpack from 'webpack';
|
|
|
|
import baseConfig from './base.config';
|
|
|
|
|
|
|
|
let config = baseConfig({
|
2021-06-20 06:08:00 +03:00
|
|
|
mode: 'development',
|
2020-10-26 15:18:23 +03:00
|
|
|
inputExtra: {
|
2022-10-10 20:05:28 +03:00
|
|
|
page: [path.join(__dirname, '../src/pageScript')],
|
2020-10-26 15:18:23 +03:00
|
|
|
},
|
2020-11-17 00:43:49 +03:00
|
|
|
output: { path: path.join(__dirname, '../dev') },
|
2020-10-26 15:18:23 +03:00
|
|
|
globals: {
|
|
|
|
'process.env': {
|
|
|
|
NODE_ENV: '"development"',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [new webpack.NoEmitOnErrorsPlugin()],
|
2020-11-17 01:53:51 +03:00
|
|
|
copy: true,
|
2022-10-10 20:05:28 +03:00
|
|
|
manifestJsonPath: path.join(__dirname, '../chrome/manifest.json'),
|
2020-10-26 15:18:23 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
config.watch = true;
|
|
|
|
|
|
|
|
export default config;
|