We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 152683e commit f273544Copy full SHA for f273544
test/cases/parsing/issue-551/index.js
@@ -0,0 +1,17 @@
1
+var window = {};
2
+
3
+it("should be able to set the public path", function() {
4
+ window.something = "something";
5
+ __webpack_public_path__ = window.something;
6
+ __webpack_public_path__.should.be.eql("something");
7
8
+ __webpack_public_path__ = "abc";
9
+ __webpack_public_path__.should.be.eql("abc");
10
11
+ __webpack_public_path__ = func();
12
+ __webpack_public_path__.should.be.eql("func");
13
14
+ function func() {
15
+ return "func";
16
+ }
17
+});
0 commit comments