diff --git a/doczrc.js b/doczrc.js index d9ba6698f..d36a43390 100644 --- a/doczrc.js +++ b/doczrc.js @@ -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; diff --git a/src/core/build/postcss.config.js b/src/core/build/postcss.config.js index 472ae137a..3a386d17b 100644 --- a/src/core/build/postcss.config.js +++ b/src/core/build/postcss.config.js @@ -1,3 +1,5 @@ +require("ts-node/register"); + const kebabCase = require("lodash/kebabCase"); const mapKeys = require("lodash/mapKeys"); const mapValues = require("lodash/mapValues");