package.configs.webpack.resolve.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neeto-commons-frontend Show documentation
Show all versions of neeto-commons-frontend Show documentation
A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.
const path = require("path");
const absolutePath = basePath =>
path.resolve(__dirname, "../../../../../", `app/javascript/${basePath}`);
module.exports = {
alias: {
apis: absolutePath("src/apis"),
assets: absolutePath("src/assets"),
components: absolutePath("src/components"),
hooks: absolutePath("src/hooks"),
reducers: absolutePath("src/reducers"),
routes: absolutePath("src/routes"),
stores: absolutePath("src/stores"),
translations: absolutePath("src/translations"),
utils: absolutePath("src/utils"),
src: absolutePath("src"),
neetoui: "@bigbinary/neetoui",
neetocommons: "@bigbinary/neeto-commons-frontend",
neetoicons: "@bigbinary/neeto-icons",
neetoteam: "@bigbinary/neeto-team-members-frontend",
neetoeditor: "@bigbinary/neeto-editor",
neetofilters: "@bigbinary/neeto-filters-frontend",
neetomolecules: "@bigbinary/neeto-molecules",
neetopayments: "@bigbinary/neeto-payments-frontend",
neetocist: "@bigbinary/neeto-cist",
neetohotkeys: "@bigbinary/neeto-hotkeys",
images: path.resolve(__dirname, "../../../../../", "app/assets/images"),
},
extensions: [
".ts",
".mjs",
".js",
".sass",
".scss",
".css",
".module.sass",
".module.scss",
".module.css",
".png",
".svg",
".gif",
".jpeg",
".jpg",
],
fallback: {
util: require.resolve("util/"),
url: require.resolve("url/"),
fs: false,
buffer: require.resolve("buffer/"),
crypto: require.resolve("crypto-browserify"),
stream: require.resolve("stream-browserify"),
},
};