From 03f0643e98b306191dc51b2a9fc8ee683a8a7536 Mon Sep 17 00:00:00 2001 From: Stanislav Fifik Date: Thu, 21 Sep 2017 15:51:38 +0200 Subject: [PATCH] allow css in js --- index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 546175d..00d3610 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,4 @@ "use strict"; -console.log(require.paths); - var source = require('vinyl-source-stream'), buffer = require('vinyl-buffer'), @@ -184,6 +182,12 @@ module.exports = { watch: argv.watch, module: { rules: [ + { + test: /\.css$/, + use: { + loader: 'css-loader' + } + }, { test: /\.jsx?$/, exclude: /node_modules/, @@ -223,6 +227,7 @@ module.exports = { ] }, plugins: [ + new $webpack.ExtractTextPlugin("[name].css"), new $webpack.FriendlyErrorsWebpackPlugin({ clearConsole: false, }), -- GitLab