theme spinner

This commit is contained in:
nixa 2016-05-17 17:42:13 +03:00
parent 00f6c0e6cb
commit 31c7843ab5
10 changed files with 58 additions and 13 deletions

View file

@ -4,6 +4,7 @@ const helpers = require('./helpers');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
var ExtractTextPlugin = require('extract-text-webpack-plugin');
const METADATA = {
title: 'Blur Admin on Angular2',
@ -86,8 +87,7 @@ module.exports = {
loader: 'source-map-loader',
exclude: [
// these packages have problems with their sourcemaps
helpers.root('node_modules/rxjs'),
helpers.root('node_modules/@angular2-material')
helpers.root('node_modules/rxjs')
]
}
@ -132,6 +132,11 @@ module.exports = {
loaders: ['raw-loader', 'sass-loader']
},
{
test: /initial\.scss$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!sass-loader')
},
{
test: /\.woff(2)?(\?v=.+)?$/, loader: "url-loader?limit=10000&mimetype=application/font-woff"
},
@ -166,6 +171,10 @@ module.exports = {
* See: http://webpack.github.io/docs/configuration.html#plugins
*/
plugins: [
new ExtractTextPlugin('initial.css', {
allChunks: true
}),
new webpack.ResolverPlugin(
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('bower.json', ['main'])
),