mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Updated webpack config to work with beta branch
This commit is contained in:
parent
97d41fd50a
commit
d63a465e6b
1 changed files with 4 additions and 49 deletions
53
Gruntfile.js
53
Gruntfile.js
|
@ -222,7 +222,7 @@ module.exports = function (grunt) {
|
||||||
entry: "./src/web/index.js",
|
entry: "./src/web/index.js",
|
||||||
output: {
|
output: {
|
||||||
filename: "scripts.js",
|
filename: "scripts.js",
|
||||||
path: "build/dev"
|
path: __dirname + "/build/dev"
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
|
@ -239,7 +239,7 @@ module.exports = function (grunt) {
|
||||||
entry: "./src/web/index.js",
|
entry: "./src/web/index.js",
|
||||||
output: {
|
output: {
|
||||||
filename: "scripts.js",
|
filename: "scripts.js",
|
||||||
path: "build/prod"
|
path: __dirname + "/build/prod"
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.UglifyJsPlugin({
|
new webpack.optimize.UglifyJsPlugin({
|
||||||
|
@ -278,45 +278,12 @@ module.exports = function (grunt) {
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// webInline: {
|
|
||||||
// target: "web",
|
|
||||||
// entry: "./src/web/index.js",
|
|
||||||
// output: {
|
|
||||||
// filename: "scripts.js",
|
|
||||||
// path: "build/prod"
|
|
||||||
// },
|
|
||||||
// plugins: [
|
|
||||||
// new webpack.optimize.UglifyJsPlugin({
|
|
||||||
// compress: {
|
|
||||||
// "screw_ie8": true,
|
|
||||||
// "dead_code": true,
|
|
||||||
// "unused": true,
|
|
||||||
// "warnings": false
|
|
||||||
// },
|
|
||||||
// comments: false,
|
|
||||||
// }),
|
|
||||||
// new HtmlWebpackPlugin({
|
|
||||||
// filename: "cyberchef.htm",
|
|
||||||
// template: "./src/web/html/index.html",
|
|
||||||
// compileTime: compileTime,
|
|
||||||
// codebaseStats: codebaseStats,
|
|
||||||
// inline: true,
|
|
||||||
// minify: {
|
|
||||||
// removeComments: true,
|
|
||||||
// collapseWhitespace: true,
|
|
||||||
// minifyJS: true,
|
|
||||||
// minifyCSS: true
|
|
||||||
// }
|
|
||||||
// }),
|
|
||||||
// new StyleExtHtmlWebpackPlugin()
|
|
||||||
// ]
|
|
||||||
// },
|
|
||||||
tests: {
|
tests: {
|
||||||
target: "node",
|
target: "node",
|
||||||
entry: "./test/index.js",
|
entry: "./test/index.js",
|
||||||
output: {
|
output: {
|
||||||
filename: "index.js",
|
filename: "index.js",
|
||||||
path: "build/test"
|
path: __dirname + "/build/test"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
node: {
|
node: {
|
||||||
|
@ -324,7 +291,7 @@ module.exports = function (grunt) {
|
||||||
entry: "./src/node/index.js",
|
entry: "./src/node/index.js",
|
||||||
output: {
|
output: {
|
||||||
filename: "CyberChef.js",
|
filename: "CyberChef.js",
|
||||||
path: "build/node",
|
path: __dirname + "/build/node",
|
||||||
library: "CyberChef",
|
library: "CyberChef",
|
||||||
libraryTarget: "commonjs2"
|
libraryTarget: "commonjs2"
|
||||||
}
|
}
|
||||||
|
@ -344,18 +311,6 @@ module.exports = function (grunt) {
|
||||||
dest: "build/prod/index.html"
|
dest: "build/prod/index.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// inline: {
|
|
||||||
// options: {
|
|
||||||
// tag: "",
|
|
||||||
// inlineTagAttributes: {
|
|
||||||
// js: "type='application/javascript'",
|
|
||||||
// css: "type='text/css'"
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
// compiled: {
|
|
||||||
// src: "build/prod/cyberchef.htm"
|
|
||||||
// }
|
|
||||||
// },
|
|
||||||
chmod: {
|
chmod: {
|
||||||
build: {
|
build: {
|
||||||
options: {
|
options: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue