webpack 5 and cypress-react-unit-test image assets
Closed this issue · 0 comments
glomotion commented
For some reason, even inlined assets don't get rendered.
// ./webpack.config.js
...
{
test: /\.(png|jpe?g|gif|svg|eot|ttf|woff|woff2)$/i,
type: 'asset', // sets assets to be automatically resourced. cypress fails when i make this 'asset/resource'. Some error about automatic public path. :(
},
deps:
"cypress": "^5.5.0",
"cypress-react-unit-test": "^4.16.0",
"typescript": "^4.0.5",
"webpack": "^5.1.3",
"webpack-cli": "4.2.0",
"webpack-dev-server": "^3.11.0"