Compare commits
No commits in common. "2e8d5371e490aa89d2d0a927abd8453e1214afee" and "cff32999ba15bb1f0dd57ff4ca7bc4cda5ffc453" have entirely different histories.
2e8d5371e4
...
cff32999ba
@ -1,7 +1,6 @@
|
|||||||
env:
|
env:
|
||||||
browser: true
|
browser: true
|
||||||
es2021: true
|
es2021: true
|
||||||
node: true
|
|
||||||
extends: eslint:recommended
|
extends: eslint:recommended
|
||||||
overrides: []
|
overrides: []
|
||||||
parserOptions:
|
parserOptions:
|
||||||
|
13
dist/aes.html
vendored
Normal file
13
dist/aes.html
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>encryptme: Simple AES encryption/decryption</title>
|
||||||
|
<meta name="description" content="Easy to use and simple online tool for AES encryption and decryption.
|
||||||
|
Advanced settings allow control over the IV, AES mode, and PBKDF2 parameters.">
|
||||||
|
<script defer src="src_style_css-src_templates_js.js"></script><script defer src="aes.js"></script></head>
|
||||||
|
<body>
|
||||||
|
<h1>AES</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
14
dist/index.html
vendored
Normal file
14
dist/index.html
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>encryptme</title>
|
||||||
|
<meta name="description" content="Easy to use and simple online tools for encryption and decryption.">
|
||||||
|
<script defer src="src_style_css-src_templates_js.js"></script><script defer src="index.js"></script></head>
|
||||||
|
<body>
|
||||||
|
<h2>Tools</h2>
|
||||||
|
<h3>Encryption/decryption</h3>
|
||||||
|
<a href="aes.html">AES</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
5121
package-lock.json
generated
5121
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
11
package.json
11
package.json
@ -5,9 +5,8 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "webpack --config webpack.prod.js",
|
"build": "webpack",
|
||||||
"lint": "eslint --ext .js,.jsx src *.js",
|
"lint": "eslint --ext .js,.jsx src"
|
||||||
"start": "webpack serve --open --config webpack.dev.js"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -34,14 +33,10 @@
|
|||||||
"homepage": "https://github.com/dogeystamp/encryptme#readme",
|
"homepage": "https://github.com/dogeystamp/encryptme#readme",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"css-loader": "^6.7.3",
|
"css-loader": "^6.7.3",
|
||||||
"css-minimizer-webpack-plugin": "^4.2.2",
|
|
||||||
"eslint": "^8.33.0",
|
"eslint": "^8.33.0",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"mini-css-extract-plugin": "^2.7.2",
|
|
||||||
"style-loader": "^3.3.1",
|
"style-loader": "^3.3.1",
|
||||||
"webpack": "^5.75.0",
|
"webpack": "^5.75.0",
|
||||||
"webpack-cli": "^5.0.1",
|
"webpack-cli": "^5.0.1"
|
||||||
"webpack-dev-server": "^4.11.1",
|
|
||||||
"webpack-merge": "^5.8.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
const path = require("path");
|
|
||||||
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
||||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
||||||
|
|
||||||
const pages = ["index", "aes"];
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
entry: pages.reduce((config, page) => {
|
|
||||||
config[page] = `./src/${page}.js`;
|
|
||||||
return config;
|
|
||||||
}, {}),
|
|
||||||
output: {
|
|
||||||
filename: "[name].js",
|
|
||||||
path: path.resolve(__dirname, "dist"),
|
|
||||||
clean: true,
|
|
||||||
},
|
|
||||||
optimization: {
|
|
||||||
splitChunks: {
|
|
||||||
chunks: "all",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [
|
|
||||||
new MiniCssExtractPlugin({
|
|
||||||
filename: "[contenthash].css",
|
|
||||||
chunkFilename: "[id].[contenthash].css",
|
|
||||||
}),
|
|
||||||
].concat(
|
|
||||||
pages.map(
|
|
||||||
(page) =>
|
|
||||||
new HtmlWebpackPlugin({
|
|
||||||
inject: true,
|
|
||||||
template: `./src/pages/${page}.html`,
|
|
||||||
filename: `${page}.html`,
|
|
||||||
chunks: [page],
|
|
||||||
})
|
|
||||||
)
|
|
||||||
),
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.css$/i,
|
|
||||||
use: [MiniCssExtractPlugin.loader, "css-loader"],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
};
|
|
40
webpack.config.js
Normal file
40
webpack.config.js
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
const path = require('path');
|
||||||
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
|
|
||||||
|
const pages = ["index", "aes"];
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
mode: 'development',
|
||||||
|
entry: pages.reduce((config, page) => {
|
||||||
|
config[page] = `./src/${page}.js`;
|
||||||
|
return config;
|
||||||
|
}, {}),
|
||||||
|
output: {
|
||||||
|
filename: "[name].js",
|
||||||
|
path: path.resolve(__dirname, "dist"),
|
||||||
|
},
|
||||||
|
optimization: {
|
||||||
|
splitChunks: {
|
||||||
|
chunks: "all",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: [].concat(
|
||||||
|
pages.map(
|
||||||
|
(page) =>
|
||||||
|
new HtmlWebpackPlugin({
|
||||||
|
inject: true,
|
||||||
|
template: `./src/pages/${page}.html`,
|
||||||
|
filename: `${page}.html`,
|
||||||
|
chunks: [page],
|
||||||
|
})
|
||||||
|
)
|
||||||
|
),
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
test: /\.css$/i,
|
||||||
|
use: ['style-loader', 'css-loader'],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
@ -1,10 +0,0 @@
|
|||||||
const { merge } = require("webpack-merge");
|
|
||||||
const common = require("./webpack.common.js");
|
|
||||||
|
|
||||||
module.exports = merge(common, {
|
|
||||||
mode: "development",
|
|
||||||
devtool: "inline-source-map",
|
|
||||||
devServer: {
|
|
||||||
static: "./dist",
|
|
||||||
},
|
|
||||||
});
|
|
@ -1,13 +0,0 @@
|
|||||||
const { merge } = require("webpack-merge");
|
|
||||||
const common = require("./webpack.common.js");
|
|
||||||
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
|
|
||||||
|
|
||||||
module.exports = merge(common, {
|
|
||||||
mode: "production",
|
|
||||||
optimization: {
|
|
||||||
minimizer: [
|
|
||||||
"...",
|
|
||||||
new CssMinimizerPlugin(),
|
|
||||||
]
|
|
||||||
}
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user