at the end of the day, it was inevitable

This commit is contained in:
Mo Elzubeir
2022-12-09 08:36:26 -06:00
commit 1218570914
1768 changed files with 887087 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import config from '../../config'
const isProduction = config.env === 'production'
const buildEntryPoint = function (entryPoint) {
let entry = [entryPoint]
if (!isProduction) {
entry.unshift(
'webpack-hot-middleware/client?path=/__webpack_hmr'
)
}
return entry
}
export const entry = {
'cw': buildEntryPoint(`${config.path_client}/main.js`)
}
export const output = {
libraryTarget: 'var',
library: 'CW',
filename: '[name].js',
path: config.path_dist,
publicPath: config.compiler_public_path
}
export const resolve = {
root: config.path_client,
extensions: ['', '.js']
}