PluginProbe ʕ •ᴥ•ʔ
Hostinger Tools / 3.0.71
Hostinger Tools v3.0.71
3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.1.2 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 3.0.0 3.0.10 3.0.11 3.0.12 3.0.13 3.0.14 3.0.15 3.0.16 3.0.17 3.0.18 3.0.19 3.0.2 3.0.20 3.0.21 3.0.22 3.0.23 3.0.24 3.0.25 3.0.26 3.0.27 3.0.28 3.0.29 3.0.3 3.0.30 3.0.31 3.0.32 3.0.33 3.0.34 3.0.35 3.0.36 3.0.37 3.0.38 3.0.39 3.0.4 3.0.40 3.0.41 3.0.42 3.0.43 3.0.44 3.0.45 3.0.46 3.0.47 3.0.48 3.0.49 3.0.5 3.0.50 3.0.51 3.0.52 3.0.53 3.0.54 3.0.55 3.0.56 3.0.57 3.0.58 3.0.59 3.0.6 3.0.60 3.0.61 3.0.62 3.0.65 3.0.7 3.0.8 3.0.9 trunk 1.8.0
hostinger / webpack.config.js
hostinger Last commit date
assets 2 months ago includes 2 weeks ago languages 9 months ago src 2 months ago vendor 1 day ago vue-frontend 1 day ago changelog.md 2 months ago changelog.txt 1 day ago composer.json 1 day ago hostinger.php 1 day ago index.php 1 year ago package.json 1 day ago readme.txt 1 day ago uninstall.php 1 year ago webpack.config.js 2 months ago webpack.mix.js 9 months ago
webpack.config.js
80 lines
1 const path = require("path");
2 const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");
3 const MiniCssExtractPlugin = require("mini-css-extract-plugin");
4 const TerserPlugin = require("terser-webpack-plugin");
5 const { VueLoaderPlugin } = require("vue-loader");
6 const webpack = require("webpack");
7
8 module.exports = {
9 entry: `./vue-frontend/src/main.ts`,
10 output: {
11 path: path.resolve(__dirname, "./vue-frontend/dist/"),
12 filename: "[name].js",
13 },
14 module: {
15 rules: [
16 {
17 test: /\.vue$/,
18 loader: "vue-loader",
19 options: {
20 compilerOptions: {
21 isCustomElement: (tag) => tag.startsWith("hp-"),
22 },
23 },
24 },
25 {
26 test: /\.ts$/,
27 loader: "ts-loader",
28 options: {
29 appendTsSuffixTo: [/\.vue$/],
30 transpileOnly: true,
31 configFile: path.resolve(__dirname, 'vue-frontend/tsconfig.json')
32 },
33 exclude: /node_modules/,
34 },
35 {
36 test: /\.s?[c]ss$/i,
37 use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
38 },
39 {
40 test: /\.(jpg|jpeg|png|gif|woff|woff2|eot|ttf|svg)$/i,
41 use: "url-loader?limit=2048",
42 },
43 ],
44 },
45 optimization: {
46 minimizer: [
47 new CssMinimizerPlugin(),
48 new TerserPlugin({
49 terserOptions: {
50 compress: {
51 drop_console: true,
52 },
53 },
54 }),
55 ],
56 },
57 plugins: [
58 new VueLoaderPlugin(),
59 new MiniCssExtractPlugin({
60 filename: "[name].css",
61 }),
62 // new webpack.HotModuleReplacementPlugin(),
63 new webpack.DefinePlugin({
64 __VUE_OPTIONS_API__: true,
65 __VUE_PROD_DEVTOOLS__: false,
66 __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false,
67 }),
68 ],
69 resolve: {
70 extensions: [".ts", ".tsx", ".js", ".vue"],
71 alias: {
72 "@": path.resolve(__dirname, "vue-frontend/src/"),
73 "@vue-frontend": path.resolve(__dirname, "vue-frontend/"),
74 },
75 fallback: {
76 punycode: require.resolve("punycode/"),
77 },
78 },
79 };
80