Skip to content
This repository was archived by the owner on Feb 1, 2020. It is now read-only.

Commit 0c7bd7a

Browse files
committed
update examples - with whitelist
-update examples - example with whitelist option set to ['whitelisted']
1 parent f7cc1d4 commit 0c7bd7a

File tree

7 files changed

+3522
-137
lines changed

7 files changed

+3522
-137
lines changed

examples/simple/dist/bundle.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,17 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
7777

7878

7979
function component() {
80-
var element = document.createElement("div");
80+
var element = document.createElement('div')
8181

8282
// Lodash, currently included via a script, is required for this line to work
8383
// Lodash, now imported by this script
84-
element.innerHTML = __WEBPACK_IMPORTED_MODULE_0_lodash___default.a.join(["Hello", "webpack"], " ");
85-
element.classList.add("hello");
86-
return element;
84+
element.innerHTML = __WEBPACK_IMPORTED_MODULE_0_lodash___default.a.join(['Hello', 'webpack'], ' ')
85+
element.classList.add('hello')
86+
element.classList.add('whitelisted')
87+
return element
8788
}
8889

89-
document.body.appendChild(component());
90+
document.body.appendChild(component())
9091

9192

9293
/***/ }),

examples/simple/dist/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
.hello {
22
color: red;
33
}
4+
5+
.whitelisted {
6+
color: green;
7+
}

0 commit comments

Comments
 (0)