1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Do not load react-mdl.css from node_modules

This commit is contained in:
ivaosthu 2016-12-20 19:15:12 +01:00
parent 84046b11bd
commit 9c568239ec
3 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,6 @@
<head>
<title>Unleash Admin</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/node_modules/react-mdl/extra/material.min.css">
<link rel="stylesheet" href="/static/bundle.css" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">

View File

@ -1,4 +1,7 @@
import 'react-mdl/extra/material.css';
import 'react-mdl/extra/material.js';
import 'whatwg-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRedirect, hashHistory } from 'react-router';

View File

@ -44,10 +44,14 @@ module.exports = {
include: path.join(__dirname, 'src'),
},
{
test: /(\.scss|\.css)$/,
test: /(\.scss)$/,
loader: ExtractTextPlugin.extract('style',
'css?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass'),
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
},
],
},