diff --git a/webpack_config/webpack.base.js b/webpack_config/webpack.base.js index 93ffd4d4..8fb51bd7 100644 --- a/webpack_config/webpack.base.js +++ b/webpack_config/webpack.base.js @@ -29,12 +29,6 @@ module.exports = { }, module: { loaders: [ - { - test: /\.(js|jsx)$/, - enforce: 'pre', - loaders: ['eslint-loader'], - exclude: [/node_modules/] - }, { test: /\.(js|jsx)$/, loaders: ['babel-loader'], diff --git a/webpack_config/webpack.dev.js b/webpack_config/webpack.dev.js index 49330de6..43c8a659 100644 --- a/webpack_config/webpack.dev.js +++ b/webpack_config/webpack.dev.js @@ -5,7 +5,10 @@ const webpack = require('webpack'); const base = require('./webpack.base'); const FriendlyErrors = require('friendly-errors-webpack-plugin'); -base.devtool = 'source-map'; +base.devtool = process.env.SLOW_BUILD_SPEED + ? 'source-map' + : 'cheap-module-eval-source-map'; + base.module.loaders.push( { test: /\.css$/, diff --git a/webpack_config/webpack.prod.js b/webpack_config/webpack.prod.js index 8ceda13f..b7db7384 100644 --- a/webpack_config/webpack.prod.js +++ b/webpack_config/webpack.prod.js @@ -11,9 +11,9 @@ const rimraf = require('rimraf'); const distFolder = 'dist/'; // Clear out build folder -rimraf.sync(distFolder, {'rmdirSync': true}); +rimraf.sync(distFolder, { rmdirSync: true }); -base.devtool = 'cheap-source-map'; +base.devtool = 'source-map'; base.module.loaders.push( { test: /\.css$/,