|
|
|
@ -1,5 +1,7 @@
@@ -1,5 +1,7 @@
|
|
|
|
|
// Generated using webpack-cli https://github.com/webpack/webpack-cli
|
|
|
|
|
|
|
|
|
|
const webpack = require("webpack"); |
|
|
|
|
const package = require('./package.json'); |
|
|
|
|
const buildVersion = package.version; |
|
|
|
|
const path = require("path"); |
|
|
|
|
const HtmlWebpackPlugin = require("html-webpack-plugin"); |
|
|
|
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); |
|
|
|
@ -26,7 +28,10 @@ const config = {
@@ -26,7 +28,10 @@ const config = {
|
|
|
|
|
new HtmlWebpackPlugin({ |
|
|
|
|
template: "src/index.html", |
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
new webpack.BannerPlugin({ |
|
|
|
|
banner: |
|
|
|
|
`@license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License \n@name [name][ext] by libregaming.org \n@version v${buildVersion}` |
|
|
|
|
}), |
|
|
|
|
// Add your plugins here
|
|
|
|
|
// Learn more about plugins from https://webpack.js.org/configuration/plugins/
|
|
|
|
|
], |
|
|
|
|