From 4b3a333af44b3f08dab6d64136b13d0d815b1fb8 Mon Sep 17 00:00:00 2001 From: joshuawilson Date: Fri, 3 Mar 2017 12:00:38 -0500 Subject: [PATCH] chore(build): remove old rollup config since can't use it and do use webpack instead --- rollup.config.js | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 rollup.config.js diff --git a/rollup.config.js b/rollup.config.js deleted file mode 100644 index 6759845..0000000 --- a/rollup.config.js +++ /dev/null @@ -1,47 +0,0 @@ -import angular from 'rollup-plugin-angular-aot'; -import sass from 'node-sass'; -import CleanCSS from 'clean-css'; -import {minify as minifyHtml} from 'html-minifier'; - -const cssmin = new CleanCSS(); -const htmlminOpts = { - caseSensitive: true, - collapseWhitespace: true, - removeComments: true, -}; - - -export default { - entry: 'dist/index.js', - dest: 'dist/bundles/ngx-widgets.umd.js', - sourceMap: false, - format: 'umd', - moduleName: 'ngx.widgets', - plugins: [ - angular({ - preprocessors: { - template: template => minifyHtml(template, htmlminOpts), - style: scss => { - const css = sass.renderSync({data: scss}).css; - return cssmin.minify(css).styles; - } - } - }) - ], - globals: { - '@angular/core': 'ng.core', - '@angular/common': 'ng.common', - '@angular/forms': 'ng.forms', - '@angular/pipes': 'ng.pipes', - 'moment': 'moment', - 'rxjs/Observable': 'Rx', - 'rxjs/Subject': 'Rx', - 'rxjs/ReplaySubject': 'Rx', - 'rxjs/add/operator/filter': 'Rx.Observable.prototype', - 'rxjs/add/operator/map': 'Rx.Observable.prototype', - 'rxjs/add/operator/mergeMap': 'Rx.Observable.prototype', - 'rxjs/add/operator/toPromise': 'Rx.Observable.prototype', - 'rxjs/add/observable/fromEvent': 'Rx.Observable', - 'rxjs/add/observable/of': 'Rx.Observable' - } -} \ No newline at end of file