LuisFlip

Results 7 comments of LuisFlip

i run: `gulp build` in file `dist/server/index.js` change `development` to `production`: --> `var env = process.env.NODE_ENV = process.env.NODE_ENV || 'production';` `cd dist` `node server/index.js` next open `localhost:8080` and get the...

i try the following: ` import 'reflect-metadata'; ` `// import 'core-js/es6';` `// import 'core-js/es7/reflect';` `import 'zone.js/dist/zone';` or ` import 'reflect-metadata'; ` `// import 'core-js/es6';` `// import 'core-js/es7/reflect';` `//import 'zone.js/dist/zone';` and...

Replacing that lines fixed the issue. Before the change, the dist/client files created by build have the following sizes: ![image](https://user-images.githubusercontent.com/39152997/47710066-b5670e80-dc29-11e8-94ce-7ae70c9d0d62.png) After that replace, the build lines ![image](https://user-images.githubusercontent.com/39152997/47710071-b8fa9580-dc29-11e8-955b-4a15cd608826.png) why we a...

@Awk34 I solve the problem adding reflect-metadata on top of app.ts `app.ts`: ``` import 'reflect-metadata'; import 'zone.js/dist/zone'; //import './polyfills'; ```

@koraysels I replace the uglify-js to terser. https://github.com/mishoo/UglifyJS2/issues/659#issuecomment-447820525 if you want continues using the uglify-js you need install UglifyJS2#harmony-v2.8.22. see: https://github.com/webpack-contrib/uglifyjs-webpack-plugin/tree/version-0.4#install

@Awk34 The project is build in jit or aot? if is in jit, how i build project with AOT?

Hello, for enable AOT i install: `"@angular/cli": "^6.2.9",` `"@angular/compiler-cli": "^6.1.10",` `"@ngtools/webpack": "^1.10.2",` in webpack.make.js: ` config.module = { rules: [ { test: /(\.ngfactory\.js|\.ngstyle\.js|\.ts)$/, loader: '@ngtools/webpack' }, .......` ` config.plugins =...