mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-14 21:14:23 +00:00
Remove exclusion of font-awesome assets (#1172)
Excluding font awesome assets causes error due to webpack not knowing how to read the files.
This commit is contained in:
parent
23546a1cf9
commit
3953af5f03
@ -104,7 +104,6 @@ module.exports = function(opts = {}) {
|
|||||||
.map(dir => path.resolve(config.path.src, dir))
|
.map(dir => path.resolve(config.path.src, dir))
|
||||||
.concat([config.path.modules]),
|
.concat([config.path.modules]),
|
||||||
|
|
||||||
exclude: /node_modules(?!\/font-awesome)/,
|
|
||||||
use: ['style-loader', 'css-loader', 'sass-loader']
|
use: ['style-loader', 'css-loader', 'sass-loader']
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -124,7 +123,6 @@ module.exports = function(opts = {}) {
|
|||||||
// Images
|
// Images
|
||||||
rules.push({
|
rules.push({
|
||||||
include: [path.resolve(config.path.assets), path.resolve(config.path.modules)],
|
include: [path.resolve(config.path.assets), path.resolve(config.path.modules)],
|
||||||
exclude: /node_modules(?!\/font-awesome)/,
|
|
||||||
test: /\.(gif|png|jpe?g|svg)$/i,
|
test: /\.(gif|png|jpe?g|svg)$/i,
|
||||||
use: [
|
use: [
|
||||||
{
|
{
|
||||||
@ -159,7 +157,6 @@ module.exports = function(opts = {}) {
|
|||||||
// Fonts
|
// Fonts
|
||||||
rules.push({
|
rules.push({
|
||||||
include: [path.resolve(config.path.assets), path.resolve(config.path.modules)],
|
include: [path.resolve(config.path.assets), path.resolve(config.path.modules)],
|
||||||
exclude: /node_modules(?!\/font-awesome)/,
|
|
||||||
test: /\.(ico|eot|otf|webp|ttf|woff|woff2)(\?.*)?$/,
|
test: /\.(ico|eot|otf|webp|ttf|woff|woff2)(\?.*)?$/,
|
||||||
loader: 'file-loader'
|
loader: 'file-loader'
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user