extracting css file
This commit is contained in:
parent
b991b1af26
commit
8fdb46f085
@ -6,6 +6,7 @@
|
||||
<title>This is an example</title>
|
||||
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700' rel='stylesheet' type='text/css'>
|
||||
<link rel="stylesheet" href="/cms.css"/>
|
||||
<script>
|
||||
window.repoFiles = {
|
||||
_posts: {
|
||||
@ -65,6 +66,7 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src='/cms.js'></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -36,6 +36,7 @@
|
||||
"eslint-loader": "^1.2.1",
|
||||
"eslint-plugin-react": "^5.1.1",
|
||||
"exports-loader": "^0.6.3",
|
||||
"extract-text-webpack-plugin": "^1.0.1",
|
||||
"express": "^4.13.4",
|
||||
"file-loader": "^0.8.5",
|
||||
"immutable": "^3.7.6",
|
||||
|
@ -1,5 +1,6 @@
|
||||
/* global module, __dirname, require */
|
||||
var webpack = require('webpack');
|
||||
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
var path = require('path');
|
||||
|
||||
module.exports = {
|
||||
@ -12,7 +13,7 @@ module.exports = {
|
||||
{ test: /\.json$/, loader: 'json-loader' },
|
||||
{
|
||||
test: /\.css$/,
|
||||
loader: 'style!css?modules&importLoaders=1!postcss'
|
||||
loader: ExtractTextPlugin.extract("style", "css?modules&importLoaders=1!postcss"),
|
||||
},
|
||||
{
|
||||
loader: 'babel',
|
||||
@ -33,6 +34,7 @@ module.exports = {
|
||||
],
|
||||
|
||||
plugins: [
|
||||
new ExtractTextPlugin('cms.css', { allChunks: true }),
|
||||
new webpack.ProvidePlugin({
|
||||
'fetch': 'imports?this=>global!exports?global.fetch!whatwg-fetch'
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user