Sha256: 11adda2b43d10ecc966a9687fbab525087fd2abe9cb7f46870450fd751670d93
Contents?: true
Size: 614 Bytes
Versions: 3
Compression:
Stored size: 614 Bytes
Contents
var path = require('path') var webpack = require('webpack') var express = require('express') var config = require('./webpack.config') var app = express() var compiler = webpack(config) app.use(require('webpack-dev-middleware')(compiler, { noInfo: true, publicPath: config.output.publicPath, historyApiFallback: true })) app.use(require('webpack-hot-middleware')(compiler)) app.get('*', function(req, res) { res.sendFile(path.join(__dirname, 'index.html')) }) app.listen(4000, 'localhost', function (err, result) { if (err) { console.log(err) } console.log('Listening at localhost:4000') })
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bouquet-0.2.2 | store/private/static/server.js |
bouquet-0.2.1 | store/private/static/server.js |
bouquet-0.2.0 | store/private/static/server.js |