Skip to content

Commit

Permalink
added public path env option for webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigredgeek committed May 23, 2018
1 parent 15cdf2c commit 10384f3
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 10384f3

Please sign in to comment.