forked from reflector-network/admin-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack-config.js
More file actions
28 lines (27 loc) · 1014 Bytes
/
webpack-config.js
File metadata and controls
28 lines (27 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const path = require('path')
const {initWebpackConfig} = require('@stellar-expert/webpack-template')
const pkgInfo = require('./package.json')
module.exports = initWebpackConfig({
entries: {
'app': {
import: './views/app.js',
htmlTemplate: './template/index.html'
}
},
outputPath: path.join(__dirname, './public/'),
staticFilesPath:'./static/',
scss: {
additionalData: '@import "~@stellar-expert/ui-framework/basic-styles/variables.scss";'
},
define: {
appVersion: pkgInfo.version,
orchestratorApiOrigin: process.env.ORCHESTRATOR_ORIGIN || process.env.apiOrigin || 'https://orchestrator.reflector.network/',
daoContractId: process.env.DAO_CONTRACTID || 'CBQSUF57OYX4RIMCZV62DKN6JFOTEKPHIZASMJYOUOCNHGNG2P3XQLSE',
daoAdmin: process.env.DAO_ADMIN || 'GDSRHC7U5XWNGHDML6SBU7HXLH67ILO7PCCCFMN55PPBYYCZEAU4FXRF'
},
devServer: {
host: '0.0.0.0',
https: false,
port: 9003
}
})