Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Commits
48c41cad
Commit
48c41cad
authored
1 year ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
typo js -> .js, channelsIndexDb -> IndexedDb, and add a way to access version info
parent
09a45f06
No related branches found
No related tags found
1 merge request
!141
npm package config
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
webpack.config.js
+11
-3
11 additions, 3 deletions
webpack.config.js
with
11 additions
and
3 deletions
webpack.config.js
+
11
−
3
View file @
48c41cad
const
path
=
require
(
'
path
'
);
const
path
=
require
(
'
path
'
);
// Export version info to a file
const
fs
=
require
(
'
fs
'
);
fs
.
writeFileSync
(
path
.
resolve
(
path
.
join
(
__dirname
,
'
src/version.ts
'
)),
`// This file is auto-generated by the build system.
import * as pkg from '../package.json';
export const BundleVersion = pkg.name + '-' + pkg.version;
`
);
module
.
exports
=
{
module
.
exports
=
{
entry
:
{
entry
:
{
bundle
:
'
./src/index.ts
'
,
bundle
:
'
./src/index.ts
'
,
logFileWorker
:
'
./assets/jsutils/logFileWorker.js
'
,
logFileWorker
:
'
./assets/jsutils/logFileWorker.js
'
,
channelsIndexDbWorker
:
'
./assets/jsutils/channelsIndexedDbWorker.js
'
,
channelsIndex
ed
DbWorker
:
'
./assets/jsutils/channelsIndexedDbWorker.js
'
,
dmIndexedDbWorker
:
'
./assets/jsutils/dmIndexedDbWorker.js
'
,
dmIndexedDbWorker
:
'
./assets/jsutils/dmIndexedDbWorker.js
'
,
ndf
:
'
./assets/jsutils/ndf.js
'
,
ndf
:
'
./assets/jsutils/ndf.js
'
,
stateIndexedDbWorker
:
'
./assets/jsutils/stateIndexedDbWorker.js
'
,
stateIndexedDbWorker
:
'
./assets/jsutils/stateIndexedDbWorker.js
'
,
...
@@ -40,6 +48,6 @@ module.exports = {
...
@@ -40,6 +48,6 @@ module.exports = {
]
]
},
},
resolve
:
{
resolve
:
{
extensions
:
[
'
.tsx
'
,
'
.ts
'
,
'
js
'
],
extensions
:
[
'
.tsx
'
,
'
.ts
'
,
'
.
js
'
],
}
,
}
};
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment