Fixed source maps

This commit is contained in:
Jori Lallo
2017-05-17 00:09:47 -07:00
parent ff17047791
commit f70e2326c0
2 changed files with 32 additions and 21 deletions

View File

@ -1,3 +1,4 @@
/* eslint-disable */
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
@ -5,7 +6,7 @@ const commonWebpackConfig = require('./webpack.config');
const developmentWebpackConfig = Object.assign(commonWebpackConfig, {
cache: true,
devtool: 'eval',
devtool: 'eval-source-map',
entry: [
'babel-polyfill',
'babel-regenerator-runtime',
@ -18,11 +19,15 @@ developmentWebpackConfig.module.loaders.push({
test: /\.s?css$/,
loader: 'style-loader!css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!sass?sourceMap',
});
developmentWebpackConfig.plugins.push(new webpack.optimize.OccurenceOrderPlugin());
developmentWebpackConfig.plugins.push(
new webpack.optimize.OccurenceOrderPlugin()
);
developmentWebpackConfig.plugins.push(new webpack.HotModuleReplacementPlugin());
developmentWebpackConfig.plugins.push(new webpack.NoErrorsPlugin());
developmentWebpackConfig.plugins.push(new HtmlWebpackPlugin({
title: 'Atlas',
}));
developmentWebpackConfig.plugins.push(
new HtmlWebpackPlugin({
title: 'Atlas',
})
);
module.exports = developmentWebpackConfig;