• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

react-webpack-generators / generator-react-webpack
96%
master: 74%

Build:
Build:
LAST BUILD BRANCH: v3.3.1
DEFAULT BRANCH: master
Repo Added 23 Aug 2016 09:07PM CUT
Files 37
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feature/config_clsname_prefix
branch: feature/config_clsname_prefix
CHANGE BRANCH
x
Reset
  • feature/config_clsname_prefix
  • feature/gh_issue_278
  • master
  • v3.3.1

pending completion
353

push

travis-ci

sthzg
Added support for configuring a className prefix

This feature allows users to put a `cssClsPrefix` property into their
.yo-rc.json. If configured, the component generator will add this string
as a prefix to className attributes.

Example:

	// .yo-rc.json
	{
	  "generator-react-webpack": {
	    "appName": "v4-latest-install",
	    "style": "css",
	    "cssmodules": false,
	    "cssClsPrefix": "myapp",
	    "postcss": false,
	    "generatedWithVersion": 4
	  }
	}

Components generated will now prepend the `myapp` prefix on their class
names, e.g.

	$ yo react-webpack:component hello
	<div className="myapp-hello-component" />

5 of 5 new or added lines in 2 files covered. (100.0%)

245 of 255 relevant lines covered (96.08%)

456.93 hits per line

Relevant lines Covered
Build:
Build:
255 RELEVANT LINES 245 COVERED LINES
456.93 HITS PER LINE
Source Files on feature/config_clsname_prefix
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 0
Loading...
Coverage∆FileLinesRelevantCoveredMissedHits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
353 feature/config_clsname_prefix Added support for configuring a className prefix This feature allows users to put a `cssClsPrefix` property into their .yo-rc.json. If configured, the component generator will add this string as a prefix to className attributes. Example: // .y... push 23 Nov 2016 11:05AM CUT sthzg travis-ci pending completion  
351 feature/config_clsname_prefix Added support for configuring a className prefix This feature allows users to put a `cssClsPrefix` property into their .yo-rc.json. If configured, the component generator will add this string as a prefix to className attributes. Example: // .y... push 23 Nov 2016 11:02AM CUT sthzg travis-ci pending completion  
349 feature/config_clsname_prefix Added support for configuring a className prefix This feature allows users to put a `cssClsPrefix` property into their .yo-rc.json. If configured, the component generator will add this string as a prefix to className attributes. Example: // .y... push 23 Nov 2016 10:52AM CUT sthzg travis-ci pending completion  
See All Builds (24)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc