mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 06:55:08 -04:00
Dependencies in the node version are now kept external in the webpack build
This commit is contained in:
parent
d46e279933
commit
7a2f071269
3 changed files with 14 additions and 8 deletions
|
@ -1,6 +1,7 @@
|
|||
const webpack = require("webpack");
|
||||
const ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
||||
const NodeExternals = require("webpack-node-externals");
|
||||
const Inliner = require("web-resource-inliner");
|
||||
|
||||
module.exports = function (grunt) {
|
||||
|
@ -294,6 +295,7 @@ module.exports = function (grunt) {
|
|||
tests: {
|
||||
target: "node",
|
||||
entry: "./test/index.js",
|
||||
externals: [NodeExternals()],
|
||||
output: {
|
||||
filename: "index.js",
|
||||
path: __dirname + "/build/test"
|
||||
|
@ -302,6 +304,7 @@ module.exports = function (grunt) {
|
|||
node: {
|
||||
target: "node",
|
||||
entry: "./src/node/index.js",
|
||||
externals: [NodeExternals()],
|
||||
output: {
|
||||
filename: "CyberChef.js",
|
||||
path: __dirname + "/build/node",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue