Skip to content
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

multiple projects using this boilerplate #23

Open
f3liiix opened this issue Jul 19, 2024 · 0 comments
Open

multiple projects using this boilerplate #23

f3liiix opened this issue Jul 19, 2024 · 0 comments

Comments

@f3liiix
Copy link

f3liiix commented Jul 19, 2024

If there are multiple projects using this boilerplate locally, running pnpm start will always start the webpack-dev-server for the first project. How can I modify this? I don't know how to write webpack configurations.

this?

"scripts": { "start": "webpack-dev-server", "build": "cross-env NODE_ENV=production webpack", "build:dev": "cross-env NODE_ENV=development webpack-cli", "serve": "serve -p 8888 dist", "serve:dev": "pnpm build:dev && pnpm serve", "serve:prod": "pnpm build && pnpm serve" },

or this?

devServer: { static: { directory: DIST_DIR, // must be the same as output.path }, watchFiles: { paths: ['src/**/*.*'], }, port: 8888, },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant