#123 Removed webpack

master
Keith Irwin 2018-03-08 21:04:19 +00:00
parent 75085d9592
commit 6903b6c69a
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
3 changed files with 121 additions and 1887 deletions

1966
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,6 @@
"connect-flash-plus": "^0.2.1",
"cookie-parser": "^1.4.3",
"cookie-session": "^2.0.0-beta.2",
"css-loader": "^0.28.7",
"csurf": "^1.9.0",
"debug": "^2.6.9",
"express": "^4.15.5",
@ -37,9 +36,6 @@
"slug": "^0.9.1",
"socket.io": "^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",
"zxcvbn": "^4.4.2"
},
@ -64,9 +60,7 @@
"start": "node server.js",
"nodemon": "nodemon --ignore 'static/**/*.min.*' server.js",
"update": "sudo npm update && sudo npm prune",
"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"
"minify": "minify --template .{{filename}}.min.{{ext}} --clean static/css*"
},
"repository": "Tracman-org/Server",
"keywords": [

View File

@ -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()
]
}