PHP Classes

File: webpack/webpack.config.js

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WP Emailer   webpack/webpack.config.js   Download  
File: webpack/webpack.config.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WP Emailer
Allow WordPress users to configure email settings
Author: By
Last change:
Date: 1 year ago
Size: 648 bytes
 

Contents

Class file image Download
/** * External dependencies. */ const path = require("path"); /** * Internal dependencies. */ const loaders = require("./loaders"); const plugins = require("./plugins"); const isDev = (process.env.NODE_ENV = "development"); let config = { entry: { main: path.resolve(__dirname, "../src/main.js") }, devtool: isDev ? "inline-source-map" : false, mode: process.env.NODE_ENV, module: { rules: loaders }, plugins, output: { path: path.resolve(__dirname, "../assets/js"), filename: "[name].js" }, optimization: { minimize: true }, }; module.exports = config;