| Server IP : 164.138.27.172 / Your IP : 216.73.216.143 Web Server : nginx/1.27.4 System : Linux cookingdream 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64 User : www-adm ( 1001) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /home/jonasn/dev/internetstiftelsen.se/ |
Upload File : |
const path = require('path');
const webpack = require('webpack');
const StyleLintPlugin = require('stylelint-webpack-plugin');
const Dotenv = require('dotenv-webpack');
module.exports = {
module: {
rules: [
{
enforce: 'pre',
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'eslint-loader',
},
{
test: /\.js?$/,
exclude: modulePath => /node_modules/.test(modulePath) && !/punycode/.test(modulePath),
use: 'babel-loader',
},
],
},
plugins: [
new StyleLintPlugin({
files: 'assets/**/*.scss',
}),
new Dotenv(),
],
resolve: {
extensions: ['.js', '.jsx'],
modules: [
path.resolve(__dirname, 'node_modules'),
],
alias: {
iis: path.resolve(__dirname, 'assets/js'),
},
},
output: {
chunkFilename: 'assets/js/chunks/[name].chunk.js?id=[chunkhash]',
publicPath: '/app/themes/internetstiftelsen/',
jsonpFunction: 'wpJsonpInternetstiftelsen',
},
};