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

Commit

Permalink
fix: init publicPath to undefined (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens authored and michael-ciniawsky committed Jun 3, 2017
1 parent d4d8bbc commit e4c0b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = function(content) {
var configKey = query.config || "fileLoader";
var options = this.options[configKey] || {};
var config = {
publicPath: false,
publicPath: undefined,
useRelativePath: false,
name: "[hash].[ext]"
};
Expand Down Expand Up @@ -61,7 +61,7 @@ module.exports = function(content) {
}

var publicPath = "__webpack_public_path__ + " + JSON.stringify(url);
if (config.publicPath !== false) {
if (config.publicPath !== undefined) {
// support functions as publicPath to generate them dynamically
publicPath = JSON.stringify(
typeof config.publicPath === "function"
Expand Down

0 comments on commit e4c0b2a

Please sign in to comment.