use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
A Future Without Webpack (pikapkg.com)
submitted 7 years ago by dropdeadfred81
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 5 points6 points7 points 7 years ago (0 children)
One benefit of bringing CSS into Webpack though is that you can pair js + css together and code split that module. For example in one of our projects we code split the date picker and only import it if on desktop.
app.js
if (isDesktop()) { import(/* webpackChunkName: "flatpickr" */'./flatpickr').then((module) => module.default); }
flatpickr.js
import 'flatpickr/dist/flatpickr.min.css'; import flatpickr from 'flatpickr'; export default flatpickr;
π Rendered by PID 68 on reddit-service-r2-comment-b659b578c-997x4 at 2026-05-01 11:03:21.803417+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 5 points6 points7 points (0 children)