UNPKG

vcomjs

Version:

Vericom AppJs

37 lines (34 loc) 951 B
const path = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); module.exports = { entry: './src/AppJs.js', output: { filename: 'vcom.bundle.js', path: path.resolve(__dirname, 'dist'), library: 'vcom', libraryTarget: 'umd', globalObject: 'this', }, mode: 'production', module: { rules: [ { test: /\.css$/, use: [ MiniCssExtractPlugin.loader, // CSS'i ayrı dosyalara çıkartır 'css-loader', // CSS'i JavaScript'e dönüştürür ], }, ], }, plugins: [ new MiniCssExtractPlugin({ filename: 'vcom.bundle.css', // Çıktı CSS dosyasının adı }), ], resolve: { alias: { jquery: path.resolve(__dirname, 'node_modules/jquery') } } };