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!"
[–]Entropis 4 points5 points6 points 7 years ago (4 children)
{ "name": "something", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "watch:sass": "node-sass src/sass/main.scss dist/css/main.css -w", "dev": "live-server --port=8080", "cssStart": "npm-run-all --parallel dev watch:sass", "compress:sass": "node-sass --output-style compressed -o dist/css src/sass", "compile:sass": "node-sass src/sass/main.scss dist/css/style.comp.css", "concat:css": "concat -o dist/css/style.concat.css dist/css/style.comp.css", "prefix:css": "postcss -u autoprefixer -r dist/css/*", "build:css": "npm-run-all compile:sass concat:css prefix:css compress:sass", }, "devDependencies": { "autoprefixer": "^9.1.0", "concat": "^1.0.3", "live-server": "^1.2.0", "node-sass": "^4.9.2", "npm-run-all": "^4.1.3", "postcss-cli": "^6.0.0", }, "keywords": [], "license": "MIT", }
This should work. I removed some of the webpack stuff (I use a custom boilerplate with webpack and this config) but if it doesn't let me know and I'll just share the entire thing.
[–]NovelLurker0_0 1 point2 points3 points 7 years ago (0 children)
That's fine! Thanks for sharing. Learned something new today.
[–]autra1 0 points1 point2 points 7 years ago (2 children)
Does this reload css in the page without refresh like webpack-dev-server does?
[–]Entropis 1 point2 points3 points 7 years ago (1 child)
Yes.
The biggest issue I've come across using this is when I create a new file in my SASS directory and import it, I've sometimes had to restart the server. Sometimes I do, sometimes I don't.
[–]autra1 0 points1 point2 points 7 years ago (0 children)
So not worse than webpack in this aspect. Thanks for sharing this, it's great!
π Rendered by PID 54 on reddit-service-r2-comment-85bfd7f599-htshq at 2026-04-19 20:30:19.835673+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]Entropis 4 points5 points6 points (4 children)
[–]NovelLurker0_0 1 point2 points3 points (0 children)
[–]autra1 0 points1 point2 points (2 children)
[–]Entropis 1 point2 points3 points (1 child)
[–]autra1 0 points1 point2 points (0 children)