docs/.vuepress/config.js in urbanopt-geojson-0.4.0 vs docs/.vuepress/config.js in urbanopt-geojson-0.5.0
- old
+ new
@@ -1,5 +1,7 @@
+const path = require('path');
+
module.exports = {
base: '/urbanopt-geojson-gem/',
themeConfig: {
navbar: false,
sidebar: [
@@ -16,7 +18,15 @@
"/schemas/thermal-connector-properties.md",
"/schemas/thermal-junction-properties.md"
]
}
]
- }
+ },
+ chainWebpack: config => {
+ config.module
+ .rule('json')
+ .test(/\.json$/)
+ .use(path.join(__dirname, 'json-schema-deref-loader.js'))
+ .loader(path.join(__dirname, 'json-schema-deref-loader.js'))
+ .end()
+ },
};