grofit / aurelia-chart

A chart element for aurelia which is powered by chart js using html5 canvas.
MIT License
46 stars 25 forks source link

fix main field of package.json #13

Closed fmal closed 8 years ago

fmal commented 8 years ago

Hi,

to use this plugin with aurelia-webpack,, the main field of package.json should point to dist/commonjs/index.js. Then it's a matter of specifying the following in your webpack.config.js:

{
  plugins: [
    new AureliaWebpackPlugin({
      includeSubModules: [{ moduleId: 'aurelia-chart' }]
    })
  ],
  alias: {
    'chartjs': 'chart.js'
  }
}

This might be something worth adding to the readme :smiley:

grofit commented 8 years ago

Thanks, have merged

fmal commented 8 years ago

Thanks, could you publish on NPM?

grofit commented 8 years ago

oh yes, will do now for you, just need to bump version etc.

grofit commented 8 years ago

done (0.2.4)

fmal commented 8 years ago

Awesome, thanks a lot :+1: