mirror of
https://github.com/JosunLP/BrowserExtensionTemplate.git
synced 2025-12-16 02:00:05 +00:00
Version 1.4.0 (#10)
* Feature/webpack integration (#9) * working webpack into template * removing package-lock.json * implementing source * style update
This commit is contained in:
parent
241d3d02c6
commit
2319a1fd9b
15 changed files with 217 additions and 766 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/settings.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