starts but delivers empty page

This commit is contained in:
peter
2019-07-28 13:22:30 +02:00
parent 7f2c900862
commit 68695ea89b
15 changed files with 39 additions and 202 deletions
+7 -59
View File
@@ -13,8 +13,7 @@ const TEMPLATE_FILE = path.resolve(APP_PATH, 'index.html');
const BUILD_PATH = path.resolve(ROOT_PATH, './static');
const staticFiles = [
{
const angularPage = {
mode: 'production',
entry: {
app: ENTRY_FILE,
@@ -134,10 +133,11 @@ const staticFiles = [
'@': APP_PATH,
}
}
},
{
}
const FrontblockLib = {
mode: 'production',
entry: path.resolve(__dirname, 'lib/FrontblockLib.js'),
entry: path.resolve(__dirname, 'lib/backendsrc/FrontblockLib.js'),
output: {
path: path.resolve(__dirname, 'static'),
filename: 'FrontblockLib.js',
@@ -177,61 +177,9 @@ const staticFiles = [
}
}
}
]
const plugin = {
target: "node",
mode: 'production',
entry: path.resolve(__dirname, 'Plugin.ts'),
output: {
path: path.resolve(__dirname, 'static'),
filename: 'Plugin.js',
libraryTarget: "commonjs2",
},
module: {
rules: [
{
test: /\.ts$/,
exclude: path.resolve(__dirname, 'node_modules'),
use: 'ts-loader',
}
]
},
optimization: {
minimizer: [new TerserPlugin({
cache: true,
parallel: true,
terserOptions:{
mangle: false,
keep_classnames: true
}
})],
splitChunks: {
cacheGroups: {
common: {
chunks: 'all',
minChunks: 2,
maxInitialRequests: 5,
minSize: 0,
name: 'common'
},
vendor: {
test: /node_modules/,
chunks: 'all',
name: 'vendor',
priority: 10,
enforce: true,
minChunks: 2
}
}
}
},
resolve: {
extensions: ['.ts', '.js'],
}
}
module.exports = [
Object.assign({}, staticFiles),
Object.assign({}, plugin),
Object.assign({}, angularPage),
Object.assign({}, FrontblockLib),
];