build: add context to webpack
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/900/head
parent
9d75451f32
commit
e2e9fa9d42
|
@ -18,10 +18,12 @@ module.exports = {
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
cache: isDev,
|
cache: isDev,
|
||||||
|
|
||||||
|
context: path.resolve(__dirname, 'src'),
|
||||||
|
|
||||||
entry: {
|
entry: {
|
||||||
main: path.resolve(path.join(__dirname, 'src', 'main')),
|
main: './main',
|
||||||
admin: path.resolve(path.join(__dirname, 'src', 'admin')),
|
admin: './admin',
|
||||||
'hooks-clear-cache': path.resolve(path.join(__dirname, 'src', 'hooks', 'clear-cache')),
|
'hooks-clear-cache': './hooks/clear-cache',
|
||||||
},
|
},
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
|
|
Loading…
Reference in New Issue