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.
25 lines (17 loc) • 598 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
var _fs = require("fs");
var _fs2 = _interopRequireDefault(_fs);
var _path = require("path");
var _path2 = _interopRequireDefault(_path);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var appDirectory = _fs2.default.realpathSync(process.cwd());
var resolveApp = function resolveApp(relativePath) {
return _path2.default.resolve(appDirectory, relativePath);
};
exports.default = {
scssModulesPath: resolveApp("src/app"),
scssPath: resolveApp("src/scss")
};