Sha256: 2c20ce1b8fed45b3fcc49716644e093671d6b800da8ad160ea99061c77aca2d9
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
#!/usr/bin/env node const webpack = require('webpack'); const WebpackDevServer = require('webpack-dev-server'); const env = String(process.env.RAILS_ENV || process.env.NODE_ENV); const Hauler = require('hauler'); const devServerConfig = Hauler.getDevServerConfig(env); const compilerConfig = Hauler.getCompilerConfig(env); // console.log(devServerConfig); // console.log(compilerConfig); const compiler = webpack(compilerConfig); const devServer = new WebpackDevServer(compiler, devServerConfig); devServer.listen(devServerConfig.port, devServerConfig.host, (err) => { if (err) { throw err; } });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hauler-0.1.0 | bin/dev-server.js |