Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Commit 86525e0

Browse files
author
Bassem Dghaidi
committed
Add webpack config and update build directories
1 parent 8b8c55d commit 86525e0

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/upload-artifact@master
2525
with:
2626
name: webpack artifacts
27-
path: ./
27+
path: dist/
2828

2929

3030
test:
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/download-artifact@master
4242
with:
4343
name: webpack artifacts
44-
path: public
44+
path: dist/
4545
- name: Use Node.js ${{ matrix.node-version }}
4646
uses: actions/steup-node@v1
4747
with:

webpack.config.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
const path = require('path')
22

3+
const entry = path.join(__dirname, '/index.js')
4+
const output = {
5+
path: path.join(__dirname, 'dist'),
6+
filename: 'objectron.bundle.js'
7+
}
8+
39
module.exports = {
10+
node: {
11+
fs: 'empty'
12+
},
413
mode: 'production',
5-
entry: './index.js',
6-
output: {
7-
path: path.resolve(__dirname, 'dist'),
8-
filename: 'objectron.bundle.js'
9-
}
14+
entry: entry,
15+
output: output
1016
}

0 commit comments

Comments
 (0)