This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

ember-cli-webpack-imports

0.0.2 • Public • Published

ember-cli-webpack-imports

An addon to add Webpack dependencies to your Ember app.

Installation

ember install ember-cli-webpack-imports

Usage

Add the npm modules you’d like to import to ember-cli-build.js:

let app = new EmberApp(defaults, {
  'ember-cli-webpack-imports': {
    expose: [
      'graphql-tag',
      'apollo-client',
      'apollo-link-http',
      'apollo-cache-inmemory'
    ]
  }
});

After that, you can import these modules like any other:

import gql from 'graphql-tag';
import {ApolloClient} from 'apollo-client';
import {HttpLink} from 'apollo-link-http';
import {InMemoryCache} from 'apollo-cache-inmemory';

Credits

The great majority of this addon is stolen from the ember-apollo-client addon. I simply felt like this code would benefit from being extracted, all props goes to the original authors!

Readme

Keywords

Package Sidebar

Install

npm i ember-cli-webpack-imports

Weekly Downloads

5

Version

0.0.2

License

MIT

Last publish

Collaborators

  • charles_demers