All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.cjs.configs.webpack.resolve.js Maven / Gradle / Ivy

Go to download

A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.

There is a newer version: 4.12.3
Show newest version
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"),
  },
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy