build: add context to webpack

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/900/head
Varun Patil 2023-10-29 13:15:29 -07:00
parent 9d75451f32
commit e2e9fa9d42
1 changed files with 5 additions and 3 deletions

View File

@ -18,10 +18,12 @@ module.exports = {
devtool: 'source-map',
cache: isDev,
context: path.resolve(__dirname, 'src'),
entry: {
main: path.resolve(path.join(__dirname, 'src', 'main')),
admin: path.resolve(path.join(__dirname, 'src', 'admin')),
'hooks-clear-cache': path.resolve(path.join(__dirname, 'src', 'hooks', 'clear-cache')),
main: './main',
admin: './admin',
'hooks-clear-cache': './hooks/clear-cache',
},
output: {