mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-15 09:04:04 +02:00
21 lines
356 B
JavaScript
21 lines
356 B
JavaScript
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,
|
|
}),
|
|
],
|
|
};
|