Improve style depencencies.
This commit is contained in:
parent
e641759ff7
commit
7ca6a9827a
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
||||||
const helpers = require('./helpers');
|
const helpers = require('./helpers');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -78,21 +77,19 @@ module.exports = {
|
|||||||
loader: 'html-loader'
|
loader: 'html-loader'
|
||||||
}, {
|
}, {
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
exclude: helpers.root('src'),
|
//include: helpers.root('src'),
|
||||||
loader: ExtractTextPlugin.extract({
|
use: [
|
||||||
fallback: 'style-loader',
|
'style-loader',
|
||||||
use: 'css-loader?sourceMap'
|
'css-loader',
|
||||||
})
|
'resolve-url-loader'
|
||||||
}, {
|
]
|
||||||
test: /\.css$/,
|
|
||||||
include: helpers.root('src'),
|
|
||||||
loader: 'css-loader'
|
|
||||||
}, {
|
}, {
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
use: [
|
use: [
|
||||||
'style-loader',
|
'style-loader',
|
||||||
'css-loader',
|
'css-loader',
|
||||||
'sass-loader',
|
'resolve-url-loader',
|
||||||
|
'sass-loader?sourceMap'
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
||||||
|
@ -38,6 +38,7 @@
|
|||||||
"node-sass": "^4.7.2",
|
"node-sass": "^4.7.2",
|
||||||
"null-loader": "^0.1.1",
|
"null-loader": "^0.1.1",
|
||||||
"raw-loader": "^0.5.1",
|
"raw-loader": "^0.5.1",
|
||||||
|
"resolve-url-loader": "^2.3.0",
|
||||||
"sass-loader": "^7.0.2",
|
"sass-loader": "^7.0.2",
|
||||||
"script-ext-html-webpack-plugin": "^2.0.1",
|
"script-ext-html-webpack-plugin": "^2.0.1",
|
||||||
"style-loader": "^0.21.0",
|
"style-loader": "^0.21.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user