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

Commit

Permalink
use publicPath from webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Feb 15, 2017
1 parent c64397c commit 89a449b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ module.exports = function (compiler, options) {
const server = express()

const devMiddleWare = require('webpack-dev-middleware')(compiler, {
quiet: true
quiet: true,
publicPath: compiler.options.output.publicPath
})

server.use(devMiddleWare)
Expand Down

0 comments on commit 89a449b

Please sign in to comment.