build: Configure AOT (#394)
* build: Configure AOT * build: Fix appveyor ENV settings
This commit is contained in:
committed by
László Monda
parent
015d110c2b
commit
be3e116130
@@ -1,3 +1,5 @@
|
||||
const AOT_BUILD = process.env.AOT_BUILD;
|
||||
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const ProgressPlugin = require('webpack/lib/ProgressPlugin');
|
||||
@@ -15,7 +17,7 @@ const nodeModules = path.join(process.cwd(), 'node_modules');
|
||||
const realNodeModules = fs.realpathSync(nodeModules);
|
||||
const genDirNodeModules = path.join(process.cwd(), 'src', '$$_gendir', 'node_modules');
|
||||
const entryPoints = ["inline","polyfills","sw-register","scripts","styles","vendor","main"];
|
||||
const minimizeCss = false;
|
||||
const minimizeCss = AOT_BUILD;
|
||||
const baseHref = "";
|
||||
const deployUrl = "";
|
||||
const postcssPlugins = function () {
|
||||
@@ -442,7 +444,7 @@ module.exports = {
|
||||
},
|
||||
"exclude": [],
|
||||
"tsConfigPath": "src/tsconfig.renderer.json",
|
||||
"skipCodeGeneration": true
|
||||
"skipCodeGeneration": !process.env.AOT_BUILD
|
||||
})
|
||||
],
|
||||
"node": {
|
||||
|
||||
Reference in New Issue
Block a user