added webpack

This commit is contained in:
zadam
2020-04-12 14:22:51 +02:00
parent 3c311cd2a4
commit 339f212e4c
28 changed files with 1774 additions and 244 deletions

14
webpack-desktop.config.js Normal file
View File

@@ -0,0 +1,14 @@
const path = require('path');
module.exports = {
mode: 'production',
entry: {
mobile: './src/public/javascripts/desktop.js',
},
output: {
publicPath: 'dist/',
path: path.resolve(__dirname, 'src/public/dist'),
filename: 'desktop.js'
},
devtool: 'source-map'
};