Restore docz

This commit is contained in:
Chi Vinh Le
2018-08-05 22:35:02 +02:00
parent 4606626ec4
commit 4fd735bc04
2 changed files with 9 additions and 3 deletions
+7 -3
View File
@@ -5,7 +5,6 @@ const path = require("path");
const fs = require("fs");
const TsconfigPathsPlugin = require("tsconfig-paths-webpack-plugin");
const extensions = [".ts", ".tsx", ".js"];
const paths = require("./config/paths");
export default {
title: "Talk 5.0",
@@ -33,14 +32,19 @@ export default {
loader: require.resolve("postcss-loader"),
options: {
config: {
path: paths.appPostCssConfig,
// TODO: There is some weird issue with including paths.ts here
path: "./src/core/build/postcss.config",
},
},
},
],
});
config.resolve.plugins = [
new TsconfigPathsPlugin({ extensions, configFile: paths.appTsconfig }),
new TsconfigPathsPlugin({
extensions,
// TODO: There is some weird issue with including paths.ts here
configFile: "./src/core/client/tsconfig.json",
}),
];
// fs.writeFileSync(path.resolve(__dirname, "tmp"), stringify(config, null, 2));
return config;
+2
View File
@@ -1,3 +1,5 @@
require("ts-node/register");
const kebabCase = require("lodash/kebabCase");
const mapKeys = require("lodash/mapKeys");
const mapValues = require("lodash/mapValues");