Skip to content

Commit ce6d335

Browse files
committed
fix(client): enable img injection - fixes #1489
1 parent a5b5603 commit ce6d335

8 files changed

Lines changed: 26 additions & 7 deletions

File tree

client/dist/index.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/dist/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/dist/index.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crossbow.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@ tasks:
44
- build-client
55
# - build-bs
66

7+
build-server:
8+
- '@npm tsc'
9+
710
build-client:
8-
- '@sh cd client && webpack'
9-
- '@sh cd client && webpack -p --output-filename index.min.js'
11+
- '@npm cd client && ./node_modules/.bin/webpack'
12+
- '@npm cd client && ./node_modules/.bin/webpack -p --output-filename index.min.js'
1013

1114
lint: >
1215
@npm prettier

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"coveralls": "istanbul-coveralls",
3333
"pre-release": "npm test && npm run pro-local && npm run pro",
3434
"lodash": "lodash include=isUndefined,isFunction,toArray,includes,union,each,isString,merge,isObject,set exports=node",
35-
"prepublish": "tsc"
35+
"prepublish": "cb build-server build-client"
3636
},
3737
"dependencies": {
3838
"browser-sync-ui": "v1.0.1",

test/fixtures/images.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6+
<meta name="viewport" content="width=device-width">
7+
<title>Test HTML Page for images</title>
8+
</head>
9+
<body>
10+
<img src="img/cam-secure.png" alt="">
11+
</body>
12+
</html>

test/fixtures/img/cam-secure.png

2.51 KB
Loading

0 commit comments

Comments
 (0)