npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

ember-cli-replace

0.6.0 • Public • Published

ember-cli-replace

Build Status Dependency Status devDependency Status Ember Observer Score

Ember CLI addon to replace text patterns in files. This is just a thin wrapper around broccoli-replace.

Installation

ember install ember-cli-replace

Options

Define the source files that will be used for replacements, and patterns that will be used to replace the contents of source files.

var app = new EmberApp({
  replace: {
    files: [
      'index.html'
    ],
    patterns: [{
      match: 'foo',
      replacement: 'bar' // replaces "@@foo" to "bar"
    }],
    enabled: true // can be set to false to disable
  }
});

Read more about the options you may pass in on the broccoli-replace page. For more information on using ember-cli, visit http://www.ember-cli.com/.

install

npm i ember-cli-replace

Downloadsweekly downloads

5,537

version

0.6.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability