removed static folder and unused webpack.config

This commit is contained in:
Daniel Hübleitner
2019-07-28 12:15:26 +02:00
parent 1e6621bb11
commit f7422ed7f8
4 changed files with 6 additions and 75 deletions
+5
View File
@@ -383,6 +383,11 @@
"@types/yargs": "^12.0.9" "@types/yargs": "^12.0.9"
} }
}, },
"@types/angular": {
"version": "1.6.55",
"resolved": "https://registry.npmjs.org/@types/angular/-/angular-1.6.55.tgz",
"integrity": "sha512-jpQ5K6t76thd9Ook5x4Xj9K462hMje6/Q84SFxglBmaW8HOLblVnALpvg6w6aV3Oe6o9jWXnYH8gHHKrfSRxNQ=="
},
"@types/babel__core": { "@types/babel__core": {
"version": "7.1.2", "version": "7.1.2",
"resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.2.tgz", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.2.tgz",
+1
View File
@@ -14,6 +14,7 @@
"author": "frontblock.me", "author": "frontblock.me",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@types/angular": "^1.6.55",
"@types/express": "^4.17.0", "@types/express": "^4.17.0",
"@types/node": "^11.13.17", "@types/node": "^11.13.17",
"@types/webpack-env": "^1.14.0", "@types/webpack-env": "^1.14.0",
-29
View File
@@ -1,29 +0,0 @@
<html>
<head>
<script src="FrontblockLib.js"></script>
</head>
<body>
yo whatup <a href="/wallet">wallets are here</a><br />
yo whatup <a href="/paymentmanager">paymentmanager is here</a><br />
</body>
</html>
-46
View File
@@ -1,46 +0,0 @@
var path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
mode: 'production',
entry: path.resolve(__dirname, 'lib/FrontblockLib.js'),
output: {
path: path.resolve(__dirname, 'static'),
filename: 'FrontblockLib.js',
},
module: {
rules: [
{ test: /\FrontblockLib.ts/, 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
}
}
}
},
};