Permalink
Browse files

Moves CSS into a separate file.

  • Loading branch information...
tamasd committed Nov 27, 2015
1 parent a86e6e5 commit e9b4f953fefb56e860af087c0f5d6563873be2fd
Showing with 8 additions and 0 deletions.
  1. +3 −0 bootstrap.config.js
  2. +1 −0 package.json
  3. +4 −0 webpack.config.js
View
@@ -1,6 +1,9 @@
"use strict";
var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
styleLoader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader"),
scripts: {
"transition": true,
"alert": true,
View
@@ -19,6 +19,7 @@
"compass-mixins": "^0.12",
"crypto-js": "^3.1.5",
"css-loader": "^0.22",
"extract-text-webpack-plugin": "^0.9.1",
"file-loader": "^0.8",
"history": "^1.13",
"html-loader": "^0.4.0",
View
@@ -2,6 +2,7 @@
var webpack = require("webpack");
var HtmlWebpackPlugin = require("html-webpack-plugin");
var ExtractTextPlugin = require("extract-text-webpack-plugin");
var serverConfig = require("./config.json");
var path = require("path");
@@ -21,6 +22,8 @@ var loaders = [
{ test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream" },
{ test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file" },
{ test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml" },
{ test: /\.less$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader!less-loader") },
{ test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
{ test: /\.scss$/, loader: "style!css!sass?"+sassIncludePaths },
{ test: /\.sass$/, loader: "style!css!sass?indentedSyntax&"+sassIncludePaths },
{ test: /.*\.(gif|png|jpe?g|svg|ico)$/i, loader: "file?name=[name]-[sha512:hash:hex:6].[ext]" }
@@ -77,6 +80,7 @@ module.exports = {
$: "jquery",
jQuery: "jquery"
}),
new ExtractTextPlugin("[name].css"),
new HtmlWebpackPlugin({
inject: true,
template: "html?attrs[]=link:href!html/index.html",

0 comments on commit e9b4f95

Please sign in to comment.