From a6a5d841fd70e9aceb6fd757450c0691f3346661 Mon Sep 17 00:00:00 2001 From: Mathias Biilmann Christensen Date: Tue, 5 Jul 2016 11:38:18 -0700 Subject: Update dependencies and add a short README --- webpack.conf.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'webpack.conf.js') diff --git a/webpack.conf.js b/webpack.conf.js index a0e014b..399c2d3 100644 --- a/webpack.conf.js +++ b/webpack.conf.js @@ -1,5 +1,6 @@ import webpack from 'webpack'; import path from 'path'; +import ExtractTextPlugin from "extract-text-webpack-plugin"; export default { module: { @@ -11,17 +12,13 @@ export default { { test: /\.json$/, loader: 'json-loader' }, { test: /\.css$/, - loader: 'style!css?modules!postcss' + loader: ExtractTextPlugin.extract("style", "css?importLoaders=1!postcss") }, { loader: 'babel', test: /\.js?$/, exclude: /node_modules/, - query: { - cacheDirectory: true, - presets: ['react', 'es2015'], - plugins: ['transform-class-properties', 'transform-object-assign', 'transform-object-rest-spread'] - } + query: {cacheDirectory: true} } ] }, @@ -33,7 +30,8 @@ export default { plugins: [ new webpack.ProvidePlugin({ 'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch' - }) + }), + new ExtractTextPlugin("main.css") ], context: path.join(__dirname, 'src'), -- cgit v1.3