Skip to content

Commit

Permalink
Bypass __PREFIX_LINKS__ checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mojodna committed Oct 14, 2016
1 parent 2bf0540 commit b6ee431
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const debug = require('debug')('gatsby:webpack-config')
import path from 'path'
import _ from 'lodash'
import invariant from 'invariant'
import { prefixLink } from 'gatsby-helpers'
import { config } from 'config'

import babelConfig from './babel-config'

Expand Down Expand Up @@ -47,7 +47,7 @@ module.exports = (program, directory, suppliedStage, webpackPort = 1500, routes
return {
path: `${directory}/public`,
filename: 'bundle-for-css.js',
publicPath: prefixLink('/'),
publicPath: `${config.linkPrefix}/`,
}
case 'build-html':
// A temp file required by static-site-generator-plugin. See plugins() below.
Expand All @@ -56,13 +56,13 @@ module.exports = (program, directory, suppliedStage, webpackPort = 1500, routes
path: `${directory}/public`,
filename: 'render-page.js',
libraryTarget: 'umd',
publicPath: prefixLink('/'),
publicPath: `${config.linkPrefix}/`,
}
case 'build-javascript':
return {
filename: 'bundle.js',
path: `${directory}/public`,
publicPath: prefixLink('/'),
publicPath: `${config.linkPrefix}/`,
}
default:
throw new Error(`The state requested ${stage} doesn't exist.`)
Expand Down

0 comments on commit b6ee431

Please sign in to comment.