瀏覽代碼

Updated webpack config to work with beta branch

n1474335 8 年之前
父節點
當前提交
d63a465e6b
共有 1 個文件被更改,包括 4 次插入49 次删除
  1. 4 49
      Gruntfile.js

+ 4 - 49
Gruntfile.js

@@ -222,7 +222,7 @@ module.exports = function (grunt) {
                 entry: "./src/web/index.js",
                 output: {
                     filename: "scripts.js",
-                    path: "build/dev"
+                    path: __dirname + "/build/dev"
                 },
                 plugins: [
                     new HtmlWebpackPlugin({
@@ -239,7 +239,7 @@ module.exports = function (grunt) {
                 entry: "./src/web/index.js",
                 output: {
                     filename: "scripts.js",
-                    path: "build/prod"
+                    path: __dirname + "/build/prod"
                 },
                 plugins: [
                     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: {
                 target: "node",
                 entry: "./test/index.js",
                 output: {
                     filename: "index.js",
-                    path: "build/test"
+                    path: __dirname + "/build/test"
                 }
             },
             node: {
@@ -324,7 +291,7 @@ module.exports = function (grunt) {
                 entry: "./src/node/index.js",
                 output: {
                     filename: "CyberChef.js",
-                    path: "build/node",
+                    path: __dirname + "/build/node",
                     library: "CyberChef",
                     libraryTarget: "commonjs2"
                 }
@@ -344,18 +311,6 @@ module.exports = function (grunt) {
                 dest: "build/prod/index.html"
             }
         },
-        // inline: {
-        //     options: {
-        //         tag: "",
-        //         inlineTagAttributes: {
-        //             js: "type='application/javascript'",
-        //             css: "type='text/css'"
-        //         }
-        //     },
-        //     compiled: {
-        //         src: "build/prod/cyberchef.htm"
-        //     }
-        // },
         chmod: {
             build: {
                 options: {