You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my package.json, "font-awesome": "^4.6.3" is a dependency and "@easy-webpack/config-css": "^2.3.2" is a devDependency. Both dev and prod have require('@easy-webpack/config-css')({ filename: 'styles.css', allChunks: true, sourceMap: false }) in the webpack.config.js
As my splash screen uses font-awesome, I have to require font-awesome's css file in my html's head.
However, this raises following error during npm start:
Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plug in, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example
That page refers me to the fact that you should have the right plugins loaded etc, but that's what I expect config-css to do for me. Any thoughts?
The text was updated successfully, but these errors were encountered:
No need to add any <link rel> to your index.html. In Webpack, we use loaders, and config-css uses one. All you need to do is import 'font-awesome/css/font-awesome.css' in one of your entry files, such as main.js.
In my
package.json
,"font-awesome": "^4.6.3"
is a dependency and"@easy-webpack/config-css": "^2.3.2"
is a devDependency. Both dev and prod haverequire('@easy-webpack/config-css')({ filename: 'styles.css', allChunks: true, sourceMap: false })
in thewebpack.config.js
As my splash screen uses font-awesome, I have to require font-awesome's css file in my html's head.
However, this raises following error during
npm start
:That page refers me to the fact that you should have the right plugins loaded etc, but that's what I expect config-css to do for me. Any thoughts?
The text was updated successfully, but these errors were encountered: