Skip to content

Commit

Permalink
Optimize the npm package size
Browse files Browse the repository at this point in the history
Make the npm package 5x smaller by removing the Markdown docs and HTML samples: I don't think people use to access these resources locally compared to the generated online versions.
  • Loading branch information
simonbrunel committed Dec 11, 2018
1 parent 45d1b14 commit ae8b507
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
14 changes: 0 additions & 14 deletions .npmignore

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Chart.js Contributors
Copyright (c) 2018 Chart.js Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
"plugin",
"label"
],
"files": [
"bower.json",
"dist/*.js",
"src"
],
"devDependencies": {
"chart.js": "2.7.2",
"eslint-config-chartjs": "^0.1.0",
Expand Down
2 changes: 2 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module.exports = [
file: `dist/${pkg.name}.js`,
banner: banner,
format: 'umd',
indent: false,
globals: {
'chart.js': 'Chart'
}
Expand All @@ -35,6 +36,7 @@ module.exports = [
file: `dist/${pkg.name}.min.js`,
banner: banner,
format: 'umd',
indent: false,
globals: {
'chart.js': 'Chart'
}
Expand Down

0 comments on commit ae8b507

Please sign in to comment.