mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2024-12-27 22:50:42 -05:00
17 lines
423 B
JavaScript
17 lines
423 B
JavaScript
const express = require('express');
|
|
const webpack = require('webpack');
|
|
const webpackDevMiddleware = require('webpack-dev-middleware');
|
|
|
|
const app = express();
|
|
const config = require('./webpack.config.js');
|
|
const compiler = webpack(config);
|
|
|
|
app.use(
|
|
webpackDevMiddleware(compiler, {
|
|
publicPath: config.output.publicPath,
|
|
})
|
|
);
|
|
|
|
app.listen(3000, function () {
|
|
console.log('Example app listening on port 3k');
|
|
});
|