Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
HMR for CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 17, 2016
1 parent b87d5b0 commit 4b7d818
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const BrowserSyncPlugin = require('browser-sync-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const autoprefixer = require('autoprefixer')
const webpack = require('webpack')
const path = require('path')
Expand All @@ -24,7 +23,6 @@ module.exports = {
modulesDirectories: ['node_modules']
},
plugins: [
new ExtractTextPlugin('css/bundle.css', { allChunks: true }),
new webpack.HotModuleReplacementPlugin(),
new BrowserSyncPlugin(
// BrowserSync options
Expand Down Expand Up @@ -54,7 +52,7 @@ module.exports = {
include: path.resolve('src/app')
}, {
test: /(\.scss|\.css)$/,
loader: ExtractTextPlugin.extract('style', 'css?-minimize&sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass')
loader: 'style!css!postcss!sass'
}]
},
postcss: [autoprefixer]
Expand Down

0 comments on commit 4b7d818

Please sign in to comment.