【文件属性】:
文件名称:PostCSS-tutorial:关于将PostCSS添加到`create-react-app` CLI的教程
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-18 10:15:53
JavaScript
安装create-react-app CLI
npm install -g create-react-app
使用create-react-app CLI创建应用
# create with create-react-app PROJECT_NAME
create-react-app postcss-example
# change into the postcss-example directory
cd postcss-example
# eject the app to expose dependancies and configuration files
npm run eject
连接CSS模块
// change: webpack.config.dev.js
{
test: /\.css$/,
include: srcPath,
loader: 'st
【文件预览】:
PostCSS-tutorial-master
----index.html(625B)
----favicon.ico(24KB)
----src()
--------variables.js(74B)
--------mixins.js(618B)
--------logo.svg(3KB)
--------index.css(63B)
--------App.js(763B)
--------App.css(685B)
--------index.js(174B)
----scripts()
--------build.js(1KB)
--------start.js(4KB)
--------openChrome.applescript(871B)
----config()
--------babel.dev.js(349B)
--------postcss.config.js(969B)
--------webpack.config.prod.js(3KB)
--------webpack.config.dev.js(3KB)
--------eslint.js(6KB)
--------flow()
--------babel.prod.js(379B)
----README.md(5KB)
----.gitignore(12B)
----package.json(2KB)