This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/webpack.config.dev.js

34 lines
993 B
JavaScript
Raw Normal View History

2017-05-17 07:09:47 +00:00
/* eslint-disable */
2016-02-27 21:53:11 +00:00
var webpack = require('webpack');
2016-05-24 05:55:42 +00:00
var HtmlWebpackPlugin = require('html-webpack-plugin');
2016-02-27 21:53:11 +00:00
2016-04-29 05:25:37 +00:00
const commonWebpackConfig = require('./webpack.config');
2016-02-27 21:53:11 +00:00
2016-04-29 05:25:37 +00:00
const developmentWebpackConfig = Object.assign(commonWebpackConfig, {
2016-02-27 21:53:11 +00:00
cache: true,
2017-05-17 07:09:47 +00:00
devtool: 'eval-source-map',
2016-02-27 21:53:11 +00:00
entry: [
2016-08-15 12:59:29 +00:00
'babel-polyfill',
2016-06-01 04:54:57 +00:00
'babel-regenerator-runtime',
2016-02-27 21:53:11 +00:00
'webpack-hot-middleware/client',
2016-07-24 22:32:31 +00:00
'./frontend/index',
2016-02-27 21:53:11 +00:00
],
});
developmentWebpackConfig.module.loaders.push({
test: /\.s?css$/,
loader: 'style-loader!css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!sass?sourceMap',
});
2017-05-17 07:09:47 +00:00
developmentWebpackConfig.plugins.push(
new webpack.optimize.OccurenceOrderPlugin()
);
2016-02-27 21:53:11 +00:00
developmentWebpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin());
developmentWebpackConfig.plugins.push(new webpack.NoErrorsPlugin());
2017-05-17 07:09:47 +00:00
developmentWebpackConfig.plugins.push(
new HtmlWebpackPlugin({
title: 'Atlas',
})
);
2016-02-27 21:53:11 +00:00
module.exports = developmentWebpackConfig;