UNPKG

attributes-kit

Version:
27 lines (21 loc) 732 B
import WebpackDevServer from 'webpack-dev-server'; import Webpack from 'webpack'; import path from 'path'; import webpackConfig from '../webpack/playground'; import '../playground/server'; const compiler = Webpack(webpackConfig); const webpackServer = new WebpackDevServer(compiler, { contentBase: path.join(__dirname, '../dist'), hot: true, quiet: false, noInfo: false, public: process.env.WEBPACK_PUBLIC_URL, proxy: { '*': 'http://localhost:9090' } }); webpackServer.listen(process.env.PORT || 8080, () => { console.log('+--------------------------------------------+'); console.log(`|Server is listening on http://localhost:8080|`); console.log('+--------------------------------------------+'); });