2020-10-26 15:18:23 +03:00
|
|
|
import path from 'path';
|
|
|
|
import baseConfig from './base.config';
|
|
|
|
|
|
|
|
export default baseConfig({
|
2021-06-20 06:08:00 +03:00
|
|
|
mode: 'production',
|
|
|
|
inputExtra: {
|
|
|
|
page: [path.join(__dirname, '../src/browser/extension/inject/pageScript')],
|
|
|
|
},
|
2020-11-17 00:43:49 +03:00
|
|
|
output: { path: path.join(__dirname, '../build/extension') },
|
2020-10-26 15:18:23 +03:00
|
|
|
globals: {
|
|
|
|
'process.env': {
|
|
|
|
NODE_ENV: '"production"',
|
|
|
|
},
|
|
|
|
},
|
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
|
|
|
});
|