1.1.0 • Published 5 years ago
ffffffffffffff v1.1.0
React component boilerplate for npm
steps
- npm run build
- npm publish
npm run build
- Webpack will process src/index.less and output to src/index.css
- Babel will process src/index.js and output to src/index.js
npm publish
- will publish the /dist folder to npm.
Reminder
Do not import a .less stylesheet file in a component, because babel doesnt know that .less file will be changed to .css in /dist folder.
If you want to import stylesheet: import './index.css' inside a component
1.1.0
5 years ago