diff options
| author | Mathias Biilmann Christensen <info@mathias-biilmann.net> | 2016-07-05 11:38:18 -0700 |
|---|---|---|
| committer | Mathias Biilmann Christensen <info@mathias-biilmann.net> | 2016-07-05 11:38:18 -0700 |
| commit | a6a5d841fd70e9aceb6fd757450c0691f3346661 (patch) | |
| tree | 80963b353263e14989f784caaadfb73fa0e4230a /webpack.conf.js | |
| parent | 8f6c70c51bf7e9e2045ae13c4052156877e77648 (diff) | |
Update dependencies and add a short README
Diffstat (limited to 'webpack.conf.js')
| -rw-r--r-- | webpack.conf.js | 12 |
1 files changed, 5 insertions, 7 deletions
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'), |
