Skip to content

Commit

Permalink
fix: bundle size (#304)
Browse files Browse the repository at this point in the history
fixes #300
  • Loading branch information
anjmao committed Feb 28, 2018
1 parent 3d6b035 commit fc5c58a
Show file tree
Hide file tree
Showing 4 changed files with 147 additions and 321 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"clean": "rimraf out-tsc dist/*",
"prebuild": "npm run clean",
"build": "ng-packagr -p ./src/ng-package.json && npm run build:themes",
"build": "ng-packagr -p ./src/package.json && npm run build:themes",
"build:demo": "rimraf dist && webpack --config ./scripts/webpack.dev.js --progress --profile --bail",
"build:themes": "node-sass --output-style compressed src/themes/ -o dist/themes",
"prestart": "yarn install",
Expand All @@ -30,6 +30,8 @@
"@angular/platform-browser": "^5.0.3",
"@angular/platform-browser-dynamic": "^5.0.3",
"@angular/router": "^5.0.3",
"tsickle": ">=0.25.5",
"tslib": "^1.7.1",
"@ng-bootstrap/ng-bootstrap": "^1.0.0-beta.5",
"@types/jasmine": "^2.5.36",
"@types/node": "^6.0.87",
Expand Down Expand Up @@ -63,7 +65,7 @@
"karma-remap-istanbul": "0.2.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "2.0.5",
"ng-packagr": "^1.5.0-rc.0",
"ng-packagr": "^2.1.0",
"ng-snippets-loader": "^0.2.5",
"node-sass": "^4.0.0",
"null-loader": "0.1.1",
Expand Down
6 changes: 0 additions & 6 deletions src/ng-package.json

This file was deleted.

8 changes: 8 additions & 0 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "../node_modules/ng-packagr/package.schema.json",
"name": "@ng-select/ng-select",
"version": "0.23.1",
"description": "Angular ng-select - All in One UI Select, Multiselect and Autocomplete",
Expand All @@ -23,5 +24,12 @@
"@angular/common": ">=4.0.0 <6.0.0",
"@angular/core": ">=4.0.0 <6.0.0",
"@angular/forms": ">=4.0.0 <6.0.0"
},
"ngPackage": {
"lib": {
"flatModuleFile": "ng-select",
"entryFile": "index.ts"
},
"dest": "../dist"
}
}

0 comments on commit fc5c58a

Please sign in to comment.