UNPKG

react-fullpage

Version:

An implementation of fullpage.js in react based on react-fullpage

29 lines (26 loc) 658 B
var config = require('./webpack.config.js'); var webpack = require('webpack'); var webpackDevServer = require('webpack-dev-server'); config.entry.unshift('webpack-dev-server/client?http://localhost:9090'); new webpackDevServer(webpack(config), { contentBase: __dirname + '/', progress: true, inline: true, historyApiFallback: true, stats: { assets: true, colors: true, hash: false, timings: true, chunks: false, chunkModules: false, modules: false, source: true, children: true } }).listen(9090, 'localhost', function (err) { if (err) { console.log(err); } console.log('Listening at localhost:' + 9090); });