File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
const webpack = require ( "webpack" ) ;
2
2
const ExtractTextPlugin = require ( "extract-text-webpack-plugin" ) ;
3
3
const HtmlWebpackPlugin = require ( "html-webpack-plugin" ) ;
4
+ const NodeExternals = require ( "webpack-node-externals" ) ;
4
5
const Inliner = require ( "web-resource-inliner" ) ;
5
6
6
7
module . exports = function ( grunt ) {
@@ -294,6 +295,7 @@ module.exports = function (grunt) {
294
295
tests : {
295
296
target : "node" ,
296
297
entry : "./test/index.js" ,
298
+ externals : [ NodeExternals ( ) ] ,
297
299
output : {
298
300
filename : "index.js" ,
299
301
path : __dirname + "/build/test"
@@ -302,6 +304,7 @@ module.exports = function (grunt) {
302
304
node : {
303
305
target : "node" ,
304
306
entry : "./src/node/index.js" ,
307
+ externals : [ NodeExternals ( ) ] ,
305
308
output : {
306
309
filename : "CyberChef.js" ,
307
310
path : __dirname + "/build/node" ,
Original file line number Diff line number Diff line change 32
32
"devDependencies" : {
33
33
"babel-core" : " ^6.24.0" ,
34
34
"babel-loader" : " ^7.1.1" ,
35
- "babel-polyfill" : " ^6.23.0" ,
36
35
"babel-preset-env" : " ^1.6.0" ,
37
36
"css-loader" : " ^0.28.4" ,
38
37
"exports-loader" : " ^0.6.4" ,
60
59
"style-loader" : " ^0.18.2" ,
61
60
"url-loader" : " ^0.5.8" ,
62
61
"web-resource-inliner" : " ^4.1.0" ,
63
- "webpack" : " ^3.3.0"
62
+ "webpack" : " ^3.3.0" ,
63
+ "webpack-node-externals" : " ^1.6.0"
64
64
},
65
65
"dependencies" : {
66
66
"bootstrap" : " ^3.3.7" ,
67
67
"bootstrap-colorpicker" : " ^2.5.1" ,
68
+ "babel-polyfill" : " ^6.23.0" ,
68
69
"bootstrap-switch" : " ^3.3.4" ,
69
70
"crypto-api" : " ^0.6.2" ,
70
71
"crypto-js" : " ^3.1.9-1" ,
You can’t perform that action at this time.
0 commit comments