I am developing an Angular 8 application.
Currently, I am incorporating AlertifyJs into my project.
In the styles.css file of Angular, I have imported these libraries:
@import '../node_modules/alertifyjs/build/alertify.min.js';
@import '../node_modules/alertifyjs/build/css/themes/bootstrap.min.css';
However, I encountered the following error:
./src/styles.css (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./src/styles.css)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
SyntaxError
(2:14) Unknown word
What changes should I make to rectify this issue?
Thank you
The complete styles.css file now includes:
/* You can add global styles to this file, and also import other style files */
@import './assets/main.css';
@import './assets/theme-vital.css';
@import '../node_modules/alertifyjs/build/alertify.min.js';
@import '../node_modules/alertifyjs/build/css/themes/bootstrap.min.css';
This is the content of theme-vital.css, which contains all the CSS styles of the main theme. It is included in the styles.css file as well:
[CSS CODE HERE]