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

Use webpack-config package directly #5

Closed
wants to merge 2 commits into from

Conversation

oandregal
Copy link
Owner

@oandregal oandregal commented Feb 18, 2019

This uses webpack-config package directly. It requires that this plugin:

  • Install necessary packages:
    • npm install --save-dev --save-exact <path-to-local-webpack-config-package>
    • npm install --save-dev --save-exact webpack webpack-cli
    • npm install --save-dev --save-exact babel-loader @babel/core source-map-loader
  • Entry should be at src/index.js. Output will be at build/index.js

Note that current webpack-config setup doesn't support JSX.

@gziolo
Copy link

gziolo commented Feb 18, 2019

Entry should be at src/index.js. Output will be at dist/main.js

I added logic which changes the output to build/index.js to follow the pattern used inside Gutenberg.

@oandregal
Copy link
Owner Author

This is no longer necessary.

@oandregal oandregal closed this Feb 19, 2019
@oandregal oandregal deleted the add/webpack-config-bare branch February 19, 2019 12:55
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

Successfully merging this pull request may close these issues.

2 participants