Skip to content

Commit 86db7af

Browse files
authored
Merge pull request #7 from esosaoh/webpack
feat: fix webpack cli issue
2 parents e0becbf + b674d0e commit 86db7af

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ install: dist/bundled.js
99

1010
dist/bundled.js: src/index.ts package.json webpack.config.cjs
1111
@mkdir -p dist
12-
npx webpack --config webpack.config.cjs
12+
npm install
13+
npm run build
1314

1415
policy.wasm: dist/bundled.js $(KUBEWARDEN_PLUGIN)
1516
javy build dist/bundled.js -C plugin=$(KUBEWARDEN_PLUGIN) -o policy.wasm

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A JavaScript Kubewarden policy template",
55
"main": "src/index.js",
66
"scripts": {
7-
"build": "webpack",
7+
"build": "npx webpack --config webpack.config.cjs",
88
"test": "bats e2e.bats",
99
"format": "prettier --write .",
1010
"format:check": "prettier --check ."

0 commit comments

Comments
 (0)