Skip to content

Commit

Permalink
added public path env option for webpack (#5527)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigredgeek authored and calcsam committed May 23, 2018
1 parent 176126f commit 074dac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = async (
return {
path: directory,
filename: `[name].js`,
publicPath: `${program.ssl ? `https` : `http`}://${
publicPath: process.env.GATSBY_WEBPACK_PUBLICPATH || `${program.ssl ? `https` : `http`}://${
program.host
}:${webpackPort}/`,
devtoolModuleFilenameTemplate: info =>
Expand Down

0 comments on commit 074dac3

Please sign in to comment.