Add node module to ember CLI app

后端 未结 5 1672
孤独总比滥情好
孤独总比滥情好 2020-12-16 17:01

I would like to use this Node.js module https://www.npmjs.com/package/remarkable-regexp in my Ember-CLI application.

How do I make it available to the Ember applicat

5条回答
  •  时光说笑
    2020-12-16 17:15

    The browserify noise is probably the preferred method, but I hacked around it by creating a symlink in the vendor folder like so:

    $ npm install --save-dev css.escape
    $ cd vendor
    $ ln -s ../node_modules/css.escape/css.escape.js css.escape.js
    

    then

    // ember-cli-build.js
    app.import('vendor/css.escape.js');
    

提交回复
热议问题