UNPKG

react-sticky-scroll-spy

Version:
32 lines (28 loc) 670 B
var webpack = require('webpack'); var HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { devtool: 'eval-source-map', entry: __dirname + "/src/main.js", module: { loaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'babel' }, { test: /\.css$/, loaders: ['style', 'css?sourceMap', 'postcss'] } ] }, postcss: [ require('autoprefixer') ], plugins: [ new HtmlWebpackPlugin({ template: __dirname + "/src/index.tmpl.html" }), new webpack.HotModuleReplacementPlugin() ], devServer: { colors: true, historyApiFallback: true, inline: true, hot: true, port: 3000 } }