1.1.0 • Published 5 years ago

react-add-component-test v1.1.0

Weekly downloads
10
License
-
Repository
-
Last release
5 years ago

React component boilerplate for npm

steps

  1. npm run build
  2. 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