blob: e109fb4366f98c4b482dedf07eb958ebb668577a [file] [log] [blame]
const path = require('path');
const srcDir = '../src/';
const MODE = "production";
module.exports = {
mode: MODE,
entry: {
popup: path.join(__dirname, srcDir + 'popup.ts'),
background: path.join(__dirname, srcDir + 'background.ts'),
content_script: path.join(__dirname, srcDir + 'content_script.ts')
},
optimization:{
minimize: MODE === "production",
},
output: {
path: path.join(__dirname, '../dist/'),
filename: '[name].js'
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
resolve: {
extensions: ['.ts', '.js']
}
};