mirror of
https://github.com/JosunLP/UserScriptProjectTemplate.git
synced 2025-12-16 02:30:05 +00:00
⬆️ Upgrading
Upgrading the Project to new Package Versions and minor optimizations
This commit is contained in:
parent
32e70e621a
commit
d63a0cf44b
5 changed files with 238 additions and 51 deletions
|
|
@ -1,24 +0,0 @@
|
|||
const path = require('path');
|
||||
const pkg = require('./package.json');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/index.ts',
|
||||
devtool: 'inline-source-map',
|
||||
mode: 'production',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.tsx', '.ts', '.js'],
|
||||
},
|
||||
output: {
|
||||
filename: pkg.name + '.user.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue