Revert to latest stable version of file-loader

This commit is contained in:
2017-07-01 07:09:40 -07:00
parent 39ac9e7ecc
commit d79504bf48
4 changed files with 23 additions and 28 deletions

View File

@@ -46,7 +46,6 @@ let webpackConfig = {
include: config.paths.assets,
use: ExtractTextPlugin.extract({
fallback: 'style',
publicPath: '../',
use: [
{ loader: 'css', options: { sourceMap: config.enabled.sourceMaps } },
{
@@ -63,7 +62,6 @@ let webpackConfig = {
include: config.paths.assets,
use: ExtractTextPlugin.extract({
fallback: 'style',
publicPath: '../',
use: [
{ loader: 'css', options: { sourceMap: config.enabled.sourceMaps } },
{
@@ -78,7 +76,7 @@ let webpackConfig = {
}),
},
{
test: /\.(ttf|eot|png|jpe?g|gif|svg|ico)$/,
test: /\.(ttf|eot|woff2?|png|jpe?g|gif|svg|ico)$/,
include: config.paths.assets,
loader: 'file',
options: {
@@ -86,20 +84,11 @@ let webpackConfig = {
},
},
{
test: /\.woff2?$/,
include: config.paths.assets,
loader: 'url',
options: {
limit: 10000,
mimetype: 'application/font-woff',
name: `[path]${assetsFilenames}.[ext]`,
},
},
{
test: /\.(ttf|eot|woff2?|png|jpe?g|gif|svg)$/,
test: /\.(ttf|eot|woff2?|png|jpe?g|gif|svg|ico)$/,
include: /node_modules|bower_components/,
loader: 'file',
options: {
publicPath: '../',
name: `vendor/${config.cacheBusting}.[ext]`,
},
},