New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-webpack-template

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-webpack-template

React Webpack Starter Kit

  • 2.0.1-5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
59
increased by5.36%
Maintainers
2
Weekly downloads
 
Created
Source

React Webpack Template 2.0 (alpha)

A flexible, easy to use boilerplate to quickly get started with Webpack, Babel and React.

Build Status Amount of Downloads per month Dependency Tracker Dependency Tracker

Usage:

You may use this template either directly (by cloning this git repository) or by using generator-react-webpack.

Features

The following features are currently included out of the box:

  • Webpack 2 setup to get you started (including basic support for LESS/SASS/SCSS/Stylus)
  • CSS-Modules support via https://github.com/gajus/react-css-modules
  • Babel 6 to transpile ES2015 and JSX
  • Latest stable React Version (v15.0)
  • Karma, Mocha, Chai and Enzyme for easier unit testing
  • Istanbul with Isparta to collect coverage information
  • Preconfigured .editorconfig file
  • Preconfigured eslint configuration, based on airbnb

Whats new in Version 2.x?

  • Support for Bower-Webpack has been removed. Most modules are fetched via npm anyway.
  • Support for the global styles folder is deprecated. This function will be removed in one of the next versions.

Common Questions:

  • I want to use react-router, but I dont know how to set it up: FOLLOWS

  • I want to use less/sass/whatever, but get an error when requiring the file: We currently do not ship the needed webpack modules. This is done on purpose, as we dont want you to install too much dependencies without using them. If you do not use a css precompiler, chance is you wont even notice it. If you need one, just install the required webpack loader (e.g. for less via npm install --save-dev less-loader).

  • I want to change/add/remove one of the given configs for webpack: The webpack configuration is located in conf/webpack. All changes in Base.js will get delegated to all webpack configurations, so you will just have to update this file for adding loaders etc. You may add your own configurations at any time. Just make sure to extend WebpackBaseConfig to make it work. When ready, just update conf/webpack/index.js with your wanted options to make them work.

  • Where do I find configuration options for insert tool of choice here: Configuration options are located either directly in the project root (as for .babelrc, webpack.config.js, karma.conf.js...) or as a folder in the conf/ directory.

Using it

The template uses webpack as build tool to serve files and run tests. The following commands are available:

# TODO

License

react-webpack-template is available under MIT-License and can therefore be used in any project free of charge.

Contributors

Keywords

FAQs

Package last updated on 22 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc