1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-03 23:50:33 +02:00

Plugin Repo: Simplify publishing script

This commit is contained in:
Laurent Cozic
2021-12-21 12:38:05 +01:00
parent 721d00874f
commit 7ca75718c3
12 changed files with 664 additions and 57 deletions

View File

@ -0,0 +1,20 @@
const path = require('path');
const webpack = require('webpack');
const distDir = path.resolve(__dirname, 'dist');
module.exports = {
entry: './index.js',
mode: 'production',
target: 'node',
output: {
filename: 'index.js',
path: distDir,
},
plugins: [
new webpack.BannerPlugin({
banner: '#!/usr/bin/env node\n',
raw: true,
}),
],
};