BrowserExtensionTemplate/webpack.config.cjs
Jonas Pfalzgraf 2319a1fd9b
Version 1.4.0 (#10)
* Feature/webpack integration (#9)

* working webpack into template

* removing package-lock.json

* implementing source

* style update
2023-01-24 01:07:55 +01:00

28 lines
446 B
JavaScript

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'),
},
};