Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit e4c0b2a

Browse files
joshwiensmichael-ciniawsky
authored andcommittedJun 3, 2017
fix: init publicPath to undefined (#159)
1 parent d4d8bbc commit e4c0b2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function(content) {
1313
var configKey = query.config || "fileLoader";
1414
var options = this.options[configKey] || {};
1515
var config = {
16-
publicPath: false,
16+
publicPath: undefined,
1717
useRelativePath: false,
1818
name: "[hash].[ext]"
1919
};
@@ -61,7 +61,7 @@ module.exports = function(content) {
6161
}
6262

6363
var publicPath = "__webpack_public_path__ + " + JSON.stringify(url);
64-
if (config.publicPath !== false) {
64+
if (config.publicPath !== undefined) {
6565
// support functions as publicPath to generate them dynamically
6666
publicPath = JSON.stringify(
6767
typeof config.publicPath === "function"

0 commit comments

Comments
 (0)
This repository has been archived.