forked from HadoukenIO/notifications-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
15 lines (13 loc) · 1.01 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const path = require('path');
const outputDir = path.resolve(__dirname, './dist');
const webpackTools = require('openfin-service-tooling').webpackTools;
module.exports = [
webpackTools.createConfig(`${outputDir}/client`, './src/client/index.ts', {minify: false, isLibrary: true, libraryName: 'notifications'}, webpackTools.versionPlugin),
webpackTools.createConfig(`${outputDir}/client`, './src/client/index.ts', {minify: true, isLibrary: true, libraryName: 'notifications', outputFilename: 'openfin-notifications'}, webpackTools.versionPlugin),
webpackTools.createConfig(`${outputDir}/provider`, './src/provider/index.ts', {extractStyles: 'styles'}, webpackTools.manifestPlugin),
webpackTools.createConfig(`${outputDir}/provider`, './src/provider/ServiceWorker.js', {minify: true, outputFilename: 'sw'}, webpackTools.versionPlugin),
webpackTools.createConfig(`${outputDir}/demo`, {
app: './src/demo/app.ts',
launcher: './src/demo/launcher.ts'
}, undefined, webpackTools.versionPlugin)
];