UNPKG

epidemiological-week

Version:

An npm package to calucate epi week and year

65 lines (61 loc) 1.28 kB
const webpack = require('webpack'); const conf = require('./gulp.conf'); const path = require('path'); const HtmlWebpackPlugin = require('html-webpack-plugin'); const autoprefixer = require('autoprefixer'); module.exports = { module: { preLoaders: [ { test: /\.js$/, exclude: /node_modules/, loader: 'eslint' } ], loaders: [ { test: /.json$/, loaders: [ 'json' ] }, { test: /\.(css|scss)$/, loaders: [ 'style', 'css', 'sass', 'postcss' ] }, { test: /\.js$/, exclude: /node_modules/, loaders: [ 'react-hot', 'babel' ] } ] }, plugins: [ new webpack.optimize.OccurrenceOrderPlugin(), new webpack.NoErrorsPlugin(), new HtmlWebpackPlugin({ template: conf.path.src('index.html') }), new webpack.HotModuleReplacementPlugin() ], postcss: () => [autoprefixer], debug: true, devtool: 'source-map', output: { path: path.join(process.cwd(), conf.paths.tmp), filename: 'index.js' }, entry: [ 'webpack/hot/dev-server', 'webpack-hot-middleware/client', `./${conf.path.src('index')}` ] };