Skip to content
Snippets Groups Projects
Commit 48c41cad authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

typo js -> .js, channelsIndexDb -> IndexedDb, and add a way to access version info

parent 09a45f06
Branches
Tags
1 merge request!141npm package config
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 = {
entry: {
bundle: './src/index.ts',
logFileWorker: './assets/jsutils/logFileWorker.js',
channelsIndexDbWorker: './assets/jsutils/channelsIndexedDbWorker.js',
channelsIndexedDbWorker: './assets/jsutils/channelsIndexedDbWorker.js',
dmIndexedDbWorker: './assets/jsutils/dmIndexedDbWorker.js',
ndf: './assets/jsutils/ndf.js',
stateIndexedDbWorker: './assets/jsutils/stateIndexedDbWorker.js',
......@@ -40,6 +48,6 @@ module.exports = {
]
},
resolve: {
extensions: ['.tsx', '.ts', 'js' ],
},
extensions: ['.tsx', '.ts', '.js' ],
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment