
- `config.reauth` was not respected if initial auth presented was incorrect, regardless of `reauth` setting in `config.json` reauth would always be attempted. fixes #117 - **BREAKING** moved app files to /app, this may be a breaking change - Updated dockerfile for new app path - Updated app dependancies - xterm v3.8.0 - https://github.com/xtermjs/xterm.js/releases/tag/3.8.0 - basic-auth v2.0.1 - https://github.com/jshttp/basic-auth/releases/tag/v2.0.1 - express v4.16.4 - https://github.com/expressjs/express/releases/tag/4.16.4 - validator v10.9.0 - https://github.com/chriso/validator.js/releases/tag/10.9.0 - Updated dev dependancies - snazzy v8.0.0 - standard v12.0.1 - uglifyjs-webpack-plugin v2.0.1 - ajv v6.5.5 - copy-webpack-plugin v4.6.0 - css-loader v1.0.1 - nodemon v1.18.6 - postcss-discard-comments v4.0.1 - snyk v1.108.2 - url-loader v1.1.2 - webpack v4.25.1 - webpack-cli v3.1.2
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
const path = require('path')
|
|
const CleanWebpackPlugin = require('clean-webpack-plugin')
|
|
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
module.exports = {
|
|
context: path.resolve('__dirname', '../'),
|
|
entry: {
|
|
webssh2: './client/src/js/index.js'
|
|
},
|
|
plugins: [
|
|
new CleanWebpackPlugin(['client/public'], {
|
|
root: path.resolve('__dirname', '../'),
|
|
verbose: true
|
|
}),
|
|
new CopyWebpackPlugin([
|
|
'./client/src/client.htm',
|
|
'./client/src/favicon.ico'
|
|
]),
|
|
new ExtractTextPlugin('[name].css')
|
|
],
|
|
output: {
|
|
filename: '[name].bundle.js',
|
|
path: path.resolve(__dirname, '../client/public')
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: ExtractTextPlugin.extract({
|
|
fallback: 'style-loader',
|
|
use: [
|
|
{
|
|
loader: 'css-loader',
|
|
options: {
|
|
minimize: {discardComments: {removeAll: true}}
|
|
}
|
|
}
|
|
]
|
|
})
|
|
}
|
|
]
|
|
}
|
|
}
|