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: {
|
|
|
|
page: [path.join(__dirname, '../src/browser/extension/inject/pageScript')],
|
|
|
|
},
|
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,
|
2020-11-17 04:20:57 +03:00
|
|
|
manifestJsonPath: path.join(
|
|
|
|
__dirname,
|
|
|
|
'../src/browser/extension/manifest.json'
|
|
|
|
),
|
2020-10-26 15:18:23 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
config.watch = true;
|
|
|
|
|
|
|
|
export default config;
|