mirror of
https://github.com/JosunLP/BrowserExtensionTemplate.git
synced 2025-10-15 00:20:10 +00:00
working webpack into template
This commit is contained in:
parent
2b9595746b
commit
a37c001f9a
8 changed files with 2771 additions and 89 deletions
28
webpack.config.settings.cjs
Normal file
28
webpack.config.settings.cjs
Normal file
|
@ -0,0 +1,28 @@
|
|||
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/app.ts"
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts'],
|
||||
},
|
||||
output: {
|
||||
filename: 'settings.js',
|
||||
path: path.resolve(__dirname, 'dist/js'),
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue