I configured aliases under resolve.alias:
tsx():
scss():
there is no problem, and the style loads normally. What is the problem?
Thank you very much.
I configured aliases under resolve.alias:
tsx():
scss():
there is no problem, and the style loads normally. What is the problem?
Thank you very much.
project is a typescript project, and the module cannot be resolved after an alias has been added to webpack.config.js.
at this point, you also need to configure path resolution in tsconfig.json and change allowJs to true.
example:
webpack.config.js:
"compilerOptions": {
"baseUrl": ".",
...
"allowJs": true,
"paths": {
"@src/*": ["./src/*"]
}
...
}
Previous: Why is the content displayed incorrectly when jquery not () is used with toggle ()?
Next: How to merge multiple arrays (more than 3) of js into json form
I have a question. If the device is opened for the first time, there is a good chance that the page will not load css (js), or if the js file is not downloaded, the page will be blank, refreshed or entered for the second time. Why I clear the cache an...
problem description some JS appears in my webpack package, although it is not big, but it adds up to become very big. I don t know where these things come from related codes this is the common component of my webpack packaged package.JSON vendor....
after the react project webpack is packaged and released, open the blank on some of the old models of Apple 6, Apple 6S, OPPO and VIVO Wechat, and use vconsole to check that there is no error message output. 1. It is normal to use a mobile browser to ...