Skip to content

Commit

Permalink
Emulate css config in karma tests
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Jul 25, 2015
1 parent e79fe92 commit 0bbd413
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions karma.conf.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
webpack = require('webpack')
webpack = require('webpack')
pkg = require './package.json'
ExtractTextPlugin = require('extract-text-webpack-plugin')

module.exports = (config) ->
config.set
Expand All @@ -22,10 +24,12 @@ module.exports = (config) ->
,
test : /\.coffee$/, loader: 'coffee-jsx-loader'
,
test : /\.styl$/, loader: 'css-loader!stylus-loader'
test : /\.styl$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader?modules&importLoaders=1&localIdentName=[hash:base64:5]!stylus-loader')
]

watch : true

plugins: [ new ExtractTextPlugin pkg.name + '.[name].css', allChunks: false ]

webpackServer:
noInfo : true

0 comments on commit 0bbd413

Please sign in to comment.