Better webpack settings for development

This commit is contained in:
Jori Lallo
2016-08-27 13:18:46 -07:00
parent c28a403321
commit 8ed81884d7
4 changed files with 12 additions and 9 deletions

View File

@ -1,6 +1,5 @@
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
// Load .env
require('dotenv').config();
@ -27,10 +26,6 @@ module.exports = {
include: path.join(__dirname, 'frontend')
},
{ test: /\.json$/, loader: 'json-loader' },
{
test: /\.s?css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!sass?sourceMap')
},
{ test: /\.(png|jpg|svg)$/, loader: 'url-loader' }, // inline base64 URLs for <=8k images, direct URLs for the rest
{
test: /\.woff$/,
@ -57,4 +52,7 @@ module.exports = {
}),
new webpack.ContextReplacementPlugin(/moment[\\\/]locale$/, /^\.\/(en)$/)
],
stats: {
assets: false,
},
};