mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-24 05:38:15 +01:00
@@ -65,12 +65,7 @@ module.exports = (env = {}, argv) => {
|
||||
},
|
||||
{
|
||||
loader: require.resolve('css-loader'),
|
||||
},
|
||||
{
|
||||
loader: require.resolve('sass-loader'),
|
||||
options: {
|
||||
api: 'modern-compiler',
|
||||
implementation: 'sass-embedded',
|
||||
url: {
|
||||
filter: (url, resourcePath) => {
|
||||
if (url.includes('.ttf')) {
|
||||
@@ -81,6 +76,13 @@ module.exports = (env = {}, argv) => {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
loader: require.resolve('sass-loader'),
|
||||
options: {
|
||||
api: 'modern-compiler',
|
||||
implementation: 'sass-embedded',
|
||||
},
|
||||
},
|
||||
],
|
||||
type: 'javascript/auto',
|
||||
},
|
||||
|
||||
+12
-8
@@ -72,6 +72,18 @@ module.exports = (env = {}, argv) => {
|
||||
},
|
||||
},
|
||||
module: {
|
||||
parser: {
|
||||
css: {
|
||||
url: {
|
||||
filter: (url, resourcePath) => {
|
||||
if (url.includes('.ttf')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
test: /\.([tj]s(x)?|cjs)$/,
|
||||
@@ -103,14 +115,6 @@ module.exports = (env = {}, argv) => {
|
||||
options: {
|
||||
api: 'modern-compiler',
|
||||
implementation: 'sass-embedded',
|
||||
url: {
|
||||
filter: (url, resourcePath) => {
|
||||
if (url.includes('.ttf')) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user