-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack-config.js
More file actions
32 lines (31 loc) · 1.1 KB
/
webpack-config.js
File metadata and controls
32 lines (31 loc) · 1.1 KB
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
29
30
31
32
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";',
sassOptions: {
quietDeps: true,
silenceDeprecations: ['import']
}
},
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',
server: 'http',
port: 9003
}
})