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:
parent
84046b11bd
commit
9c568239ec
@ -3,7 +3,6 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>Unleash Admin</title>
|
<title>Unleash Admin</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<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 rel="stylesheet" href="/static/bundle.css" />
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
<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">
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
|
import 'react-mdl/extra/material.css';
|
||||||
|
import 'react-mdl/extra/material.js';
|
||||||
import 'whatwg-fetch';
|
import 'whatwg-fetch';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import { Router, Route, IndexRedirect, hashHistory } from 'react-router';
|
import { Router, Route, IndexRedirect, hashHistory } from 'react-router';
|
||||||
|
@ -44,10 +44,14 @@ module.exports = {
|
|||||||
include: path.join(__dirname, 'src'),
|
include: path.join(__dirname, 'src'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /(\.scss|\.css)$/,
|
test: /(\.scss)$/,
|
||||||
loader: ExtractTextPlugin.extract('style',
|
loader: ExtractTextPlugin.extract('style',
|
||||||
'css?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass'),
|
'css?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss!sass'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
test: /\.css$/,
|
||||||
|
loader: 'style-loader!css-loader',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user