-
Notifications
You must be signed in to change notification settings - Fork 101
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
Fieldmanager Webpack setup for JS and CSS minification #785
base: main
Are you sure you want to change the base?
Conversation
webpack.config.js
Outdated
// postcss-preset-env includes autoprefixer | ||
'postcss-preset-env', | ||
{ | ||
browsers: 'last 2 versions', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may need to be adjusted but for the most cases the -webkit and -moz prefixes are added here with autoprefixer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding this to package.json
via the browserslist
field (or a .browserslistrc
file) instead so other tools like Babel can make use of it too. 🙂
https://github.com/csstools/postcss-preset-env#browsers
https://babeljs.io/docs/en/babel-preset-env
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome stuff! 😄 Just a few questions and suggestions.
webpack.config.js
Outdated
// postcss-preset-env includes autoprefixer | ||
'postcss-preset-env', | ||
{ | ||
browsers: 'last 2 versions', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding this to package.json
via the browserslist
field (or a .browserslistrc
file) instead so other tools like Babel can make use of it too. 🙂
https://github.com/csstools/postcss-preset-env#browsers
https://babeljs.io/docs/en/babel-preset-env
…e targets, compile files
This PR should serve as a springboard to using Webpack as a build system. This PR has the following characteristics:
build
directoryautoprefixer
to CSS properties using PostCSSFuture efforts may want to include:
NOTE:
Currently, the CSS files in the entry points also generate a JS file in the build even if there is no associated JS file.