-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.prod.js
23 lines (21 loc) · 899 Bytes
/
webpack.prod.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const merge = require('webpack-merge');
const common = require('./webpack.common.js');
const path = require('path');
module.exports = merge(common, {
mode: 'production',
/**
* all the same stuff as in webpack.dev.js
**/
output: {
filename: '[name].bundle.js',
path: path.resolve(__dirname, "wordpress/wp-content/themes//app"),
publicPath: '/wp-content/themes/technomad/app/',
//https://webpack.js.org/configuration/output#outputpublicpath:
//publicPath: 'https://cdn.example.com/assets/', // CDN (always HTTPS)
//publicPath: '//cdn.example.com/assets/', // CDN (same protocol)
//publicPath: '/assets/', // server-relative
//publicPath: 'assets/', // relative to HTML page
//publicPath: '../assets/', // relative to HTML page
//publicPath: '', // relative to HTML page (same directory)
},
});