Added mock css loader

This commit is contained in:
Francisco Hodge 2021-10-12 23:13:26 -07:00
parent cb008245a8
commit 86e0dada1d
4 changed files with 7 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,7 @@
"types": "build/types/index.d.ts",
"scripts": {
"start": "webpack serve --config webpack.config.demo.js",
"build": "webpack && tsc && npm run build-modern",
"build": "webpack && npm run build-modern && tsc",
"build-modern": "webpack --config webpack.config.modern.js",
"test": "jest --silent",
"coverage": "npm run test -- --coverage",

1
scripts/loaderMock.js Normal file
View File

@ -0,0 +1 @@
module.exports = () => "";

View File

@ -62,11 +62,14 @@ module.exports = {
]
}
}
},
{
test: /\.(sa|sc|c)ss$/,
use: path.resolve('scripts/loaderMock.js')
}
]
},
plugins: [
new webpack.IgnorePlugin({ resourceRegExp: /\.(sa|sc|c)ss$/ }),
new webpack.BannerPlugin(banner)
],
resolve: {