refactor: dev optimizations
This commit is contained in:
@@ -57,6 +57,20 @@ module.exports = () => {
|
||||
app.locals.data = wiki.data
|
||||
app.locals._ = require('lodash')
|
||||
|
||||
// ----------------------------------------
|
||||
// HMR (Dev Mode Only)
|
||||
// ----------------------------------------
|
||||
|
||||
if (global.DEV) {
|
||||
const webpackDevMiddleware = require('webpack-dev-middleware')
|
||||
const webpackHotMiddleware = require('webpack-hot-middleware')
|
||||
app.use(webpackDevMiddleware(global.WP, {
|
||||
publicPath: global.WPCONFIG.output.publicPath,
|
||||
logger: wiki.logger
|
||||
}))
|
||||
app.use(webpackHotMiddleware(global.WP))
|
||||
}
|
||||
|
||||
// ----------------------------------------
|
||||
// Controllers
|
||||
// ----------------------------------------
|
||||
|
@@ -25,7 +25,7 @@ html
|
||||
link(type='text/css', rel='stylesheet', href=config.site.path + 'css/bundle.css')
|
||||
|
||||
//- JS
|
||||
script(type='text/javascript', src=config.site.path + 'js/manifest.js')
|
||||
script(type='text/javascript', src=config.site.path + 'js/runtime.js')
|
||||
script(type='text/javascript', src=config.site.path + 'js/vendor.js')
|
||||
script(type='text/javascript', src=config.site.path + 'js/client.js')
|
||||
|
||||
|
@@ -274,7 +274,7 @@ block body
|
||||
i(v-if='loading')
|
||||
.panel-content.is-text
|
||||
.is-logo
|
||||
svg.icons.is-64: use(xlink:href='#nc-man')
|
||||
svg.icons.is-64: use(xlink:href='#nc-man-black')
|
||||
h4 Administrator Account
|
||||
p A root administrator account will be created for local authentication. From this account, you can create or authorize more users.
|
||||
.panel-content.form-sections
|
||||
|
Reference in New Issue
Block a user