mirror of
https://github.com/JosunLP/BrowserExtensionTemplate.git
synced 2025-06-21 18:11:08 +00:00
28 lines
446 B
TypeScript
28 lines
446 B
TypeScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
entry: './src/app.ts',
|
|
mode: 'production',
|
|
devtool: 'source-map',
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
use: 'ts-loader',
|
|
exclude: [
|
|
"/node_modules/",
|
|
"/dist/",
|
|
"/src/background.ts",
|
|
"/src/settings.ts"
|
|
],
|
|
},
|
|
],
|
|
},
|
|
resolve: {
|
|
extensions: ['.tsx', '.ts'],
|
|
},
|
|
output: {
|
|
filename: 'app.js',
|
|
path: path.resolve(__dirname, 'dist/js'),
|
|
},
|
|
};
|