npm.io
1.1.0 • Published 6 years ago

ffffffffffffff

Licence
Version
1.1.0
Deps
1
Size
12 kB
Vulns
0
Weekly
0

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