[WIP] webpack stuff

This commit is contained in:
Tom Raithel
2017-01-25 11:58:24 +01:00
parent 74bfec3366
commit 3443ae050a
3 changed files with 20 additions and 3 deletions

View File

@@ -1,10 +1,20 @@
var path = require('path');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
const cssLoader = ExtractTextPlugin.extract({
loader: "css-loader"
let cssLoader = ExtractTextPlugin.extract({
fallbackLoader: "style-loader",
loader: [
"css-loader",
"postcss-loader",
]
});
console.log('------------------------------');
console.log(cssLoader);
console.log('------------------------------');
// cssLoader = 'css-loader';
module.exports = {
entry: {
bundle: './js/radar.js',
@@ -28,7 +38,11 @@ module.exports = {
include: [
path.resolve(__dirname, "styles")
],
loader: cssLoader,
use: [
{
loader: cssLoader,
}
],
},
],
},