mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-30 23:06:10 +03:00
Use options for webpack dev middleware.
This commit is contained in:
parent
8b6d364b49
commit
a3b3b30e9a
@ -26,15 +26,17 @@ function start({ routes, debug, manifestConfig, fileContents }) {
|
||||
|
||||
const options = {
|
||||
contentBase: false,
|
||||
// hot: true,
|
||||
inline: false,
|
||||
hot: true,
|
||||
inline: true,
|
||||
host: "localhost",
|
||||
stats: "errors-only"
|
||||
stats: "errors-only",
|
||||
publicPath: "/"
|
||||
};
|
||||
const compiler = webpack(config);
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(middleware(compiler, { publicPath: "/" }));
|
||||
app.use(middleware(compiler, options));
|
||||
|
||||
app.use("*", function(req, res, next) {
|
||||
// don't know why this works, but it does
|
||||
|
Loading…
Reference in New Issue
Block a user