Skip to content
Snippets Groups Projects
Commit 53245be0 authored by john's avatar john
Browse files

webpack fix to make app work again

parent b01d3496
No related branches found
No related tags found
No related merge requests found
......@@ -3,21 +3,22 @@ const path = require('path')
const universal = require('./universal')
module.exports = {
authsome: {
mode: universal.mode,
teams: universal.teams
},
pubsweet: {
components: universal.components
},
'pubsweet-backend': {
dbPath: path.join(__dirname, '..', 'api', 'db'),
secret: 'c0d9a89b-fcce-49b3-83bc-0ccf3326d0ef',
API_ENDPOINT: '/api'
},
'pubsweet-component-ink-backend': universal.inkBackend,
'pubsweet-frontend': {
theme: universal.theme,
routes: 'app/routes.jsx',
navigation: 'app/components/Navigation/Navigation.jsx'
},
authsome: {
mode: universal.mode,
teams: universal.teams
},
pubsweet: {
components: universal.components
}
}
......@@ -3,21 +3,22 @@ const path = require('path')
const universal = require('./universal')
module.exports = {
authsome: {
mode: universal.mode,
teams: universal.teams
},
pubsweet: {
components: universal.components
},
'pubsweet-backend': {
dbPath: path.join(__dirname, '..', 'api', 'db'),
secret: '71dcce42-2245-4944-925b-0a62b83425ce',
API_ENDPOINT: '/api'
},
'pubsweet-component-ink-backend': universal.inkBackend,
'pubsweet-frontend': {
theme: universal.theme,
routes: 'app/routes.jsx',
navigation: 'app/components/Navigation/Navigation.jsx'
},
authsome: {
mode: universal.mode,
teams: universal.teams
},
pubsweet: {
components: ['pubsweet-component-signup', 'pubsweet-component-login']
}
}
......@@ -7,6 +7,11 @@ module.exports = {
'pubsweet-component-login',
'pubsweet-component-signup'
],
inkBackend: {
inkEndpoint: 'http://ink-api.coko.foundation',
email: 'editoria@coko.foundation',
password: 'editoria'
},
mode: editoriaMode,
teams: {
teamProduction: {
......
......@@ -12,6 +12,7 @@ const resolve = (type, entry) => {
const resolvePreset = entry => resolve('preset', entry)
const resolvePlugin = entry => resolve('plugin', entry)
const frontendComponents = config.pubsweet.components.filter(name => require(name).frontend)
module.exports = [
{
......@@ -88,7 +89,8 @@ module.exports = [
loader: 'string-replace-loader',
query: {
search: 'PUBSWEET_COMPONENTS',
replace: '[' + config.pubsweet.components.map(component => `require('${component}')`).join(', ') + ']'
// replace: '[' + config.pubsweet.components.map(component => `require('${component}')`).join(', ') + ']'
replace: '[' + frontendComponents.map(component => `require('${component}')`).join(', ') + ']'
},
include: babelIncludes
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment