#123 Removed webpack
parent
75085d9592
commit
6903b6c69a
File diff suppressed because it is too large
Load Diff
|
@ -9,7 +9,6 @@
|
||||||
"connect-flash-plus": "^0.2.1",
|
"connect-flash-plus": "^0.2.1",
|
||||||
"cookie-parser": "^1.4.3",
|
"cookie-parser": "^1.4.3",
|
||||||
"cookie-session": "^2.0.0-beta.2",
|
"cookie-session": "^2.0.0-beta.2",
|
||||||
"css-loader": "^0.28.7",
|
|
||||||
"csurf": "^1.9.0",
|
"csurf": "^1.9.0",
|
||||||
"debug": "^2.6.9",
|
"debug": "^2.6.9",
|
||||||
"express": "^4.15.5",
|
"express": "^4.15.5",
|
||||||
|
@ -37,9 +36,6 @@
|
||||||
"slug": "^0.9.1",
|
"slug": "^0.9.1",
|
||||||
"socket.io": "^2.0.3",
|
"socket.io": "^2.0.3",
|
||||||
"socket.io-client": "^2.0.3",
|
"socket.io-client": "^2.0.3",
|
||||||
"style-loader": "^0.18.2",
|
|
||||||
"uglifyjs-webpack-plugin": "^0.4.6",
|
|
||||||
"webpack": "^3.6.0",
|
|
||||||
"xss": "^0.3.4",
|
"xss": "^0.3.4",
|
||||||
"zxcvbn": "^4.4.2"
|
"zxcvbn": "^4.4.2"
|
||||||
},
|
},
|
||||||
|
@ -64,9 +60,7 @@
|
||||||
"start": "node server.js",
|
"start": "node server.js",
|
||||||
"nodemon": "nodemon --ignore 'static/**/*.min.*' server.js",
|
"nodemon": "nodemon --ignore 'static/**/*.min.*' server.js",
|
||||||
"update": "sudo npm update && sudo npm prune",
|
"update": "sudo npm update && sudo npm prune",
|
||||||
"minify": "minify --template .{{filename}}.min.{{ext}} --clean static/css*",
|
"minify": "minify --template .{{filename}}.min.{{ext}} --clean static/css*"
|
||||||
"build": "node_modules/.bin/webpack --config webpack.config.js",
|
|
||||||
"subuild": "sudo node_modules/.bin/webpack --config webpack.config.js"
|
|
||||||
},
|
},
|
||||||
"repository": "Tracman-org/Server",
|
"repository": "Tracman-org/Server",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
const path = require('path')
|
|
||||||
const env = require('./config/env/env.js')
|
|
||||||
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
|
|
||||||
// Javascript files to be bundled
|
|
||||||
entry: {
|
|
||||||
base: './static/js/base.js',
|
|
||||||
header: './static/js/header.js',
|
|
||||||
footer: './static/js/footer.js',
|
|
||||||
contact: './static/js/contact.js',
|
|
||||||
login: './static/js/login.js',
|
|
||||||
map: './static/js/map.js',
|
|
||||||
settings: './static/js/settings.js',
|
|
||||||
password: './static/js/password.js',
|
|
||||||
sw: './static/js/sw.js',
|
|
||||||
},
|
|
||||||
|
|
||||||
// Sourcemaps
|
|
||||||
devtool: (env.mode === 'development') ? 'inline-source-map' : false,
|
|
||||||
|
|
||||||
// Output format
|
|
||||||
output: {
|
|
||||||
filename: '.[name].bun.js',
|
|
||||||
path: path.resolve(__dirname, 'static/js')
|
|
||||||
},
|
|
||||||
|
|
||||||
plugins: [
|
|
||||||
// Minimize JS
|
|
||||||
new UglifyJsPlugin()
|
|
||||||
]
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue