Commit 03f0643e authored by Stanislav Fifik's avatar Stanislav Fifik

allow css in js

parent d04c7f38
"use strict"; "use strict";
console.log(require.paths);
var source = require('vinyl-source-stream'), var source = require('vinyl-source-stream'),
buffer = require('vinyl-buffer'), buffer = require('vinyl-buffer'),
...@@ -184,6 +182,12 @@ module.exports = { ...@@ -184,6 +182,12 @@ module.exports = {
watch: argv.watch, watch: argv.watch,
module: { module: {
rules: [ rules: [
{
test: /\.css$/,
use: {
loader: 'css-loader'
}
},
{ {
test: /\.jsx?$/, test: /\.jsx?$/,
exclude: /node_modules/, exclude: /node_modules/,
...@@ -223,6 +227,7 @@ module.exports = { ...@@ -223,6 +227,7 @@ module.exports = {
] ]
}, },
plugins: [ plugins: [
new $webpack.ExtractTextPlugin("[name].css"),
new $webpack.FriendlyErrorsWebpackPlugin({ new $webpack.FriendlyErrorsWebpackPlugin({
clearConsole: false, clearConsole: false,
}), }),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment