-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add custom webpack alias ? #330
Comments
https://ant.design/docs/react/use-with-create-react-app |
To add a alias you need to create a preact.config.js and do something like this:
|
@SaraVieira Thanks you 👍 , how can i config less-loader ? |
Trying to check that now :) |
@cuduy197 Here you go man
|
Just place that after all in the first one and you can change both :) |
@SaraVieira WOW, Thanks you alot <3 |
@cuduy197 Worked fine ? :) |
Yeah 😄 |
Awesome ! @reznord @developit can you guys close this issue ? :) |
Thanks @SaraVieira |
for future devs export default function(config, env, helpers) {
// Additional top-level alias
config.resolve.alias = Object.assign(
{},
{
components: resolve(__dirname, "src/components/"),
global: resolve(__dirname, "src/global/"),
routes: resolve(__dirname, "src/routes/")
},
config.resolve.alias
);
} |
How to add custom webpack alias using "preact.config.js" ?
The text was updated successfully, but these errors were encountered: