1. 命令 下载materialize-css
npm install materialize-css@next
2. 下载后有两组文件,min 用于生成环境,另一种用于开发环境
You'll notice that there are two sets of the files . The min
means that the file is "compressed" to reduce load times, These minified files are usually used in production while it is better to use the unminified files during development.
3. 修改 angular.json
"styles": [
"src/styles.css",
"node_modules/materialize-css/dist/css/materialize.min.css"
],
网友评论