mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-11-10 05:03:44 +01:00
e97805d379
Introduced bidirectional conversion functionality for XMR to fiat calculations. Added form elements and event listeners to handle user inputs and conversion direction. Enhanced URL and metadata processing to be dynamic based on protocol. Updated UI with conversion buttons for a better user experience. Safelisted new CSS classes in webpack configuration.
37 lines
848 B
JavaScript
37 lines
848 B
JavaScript
'use strict'
|
|
|
|
const path = require('path');
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
const { PurgeCSSPlugin } = require("purgecss-webpack-plugin");
|
|
const glob = require('glob-all');
|
|
|
|
module.exports = {
|
|
mode: 'development',
|
|
entry: './src/js/main.js',
|
|
output: {
|
|
filename: 'main.js',
|
|
path: path.resolve(__dirname, 'js'),
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.css$/,
|
|
use: [
|
|
MiniCssExtractPlugin.loader,
|
|
'css-loader'
|
|
]
|
|
}
|
|
]
|
|
},
|
|
plugins: [
|
|
new MiniCssExtractPlugin({
|
|
filename: '../css/main.css'
|
|
}),
|
|
new PurgeCSSPlugin({
|
|
paths: glob.sync([
|
|
path.join(__dirname, 'index.php')
|
|
]),
|
|
safelist: ['tooltip', 'fade', 'show', 'bs-tooltip-top', 'tooltip-inner', 'tooltip-arrow', 'btn-equals', 'btn-arrow']
|
|
})
|
|
]
|
|
}; |