UNPKG

react-app-rewire-wolox

Version:

Add CSS Modules + SASS and Babel config Webpack config to a [`react-app-rewired`](https://github.com/timarney/react-app-rewired) config.

11 lines (8 loc) 275 B
import fs from "fs"; import path from "path"; const appDirectory = fs.realpathSync(process.cwd()); const resolveApp = relativePath => path.resolve(appDirectory, relativePath); export default { scssModulesPath: resolveApp("src/app"), scssPath: resolveApp("src/scss") };