sinanmtl / webpack-simple-starter Goto Github PK
View Code? Open in Web Editor NEWA simple webpack starter without framework (Like Vue, React, Angular, etc.)
License: MIT License
A simple webpack starter without framework (Like Vue, React, Angular, etc.)
License: MIT License
I'm running node 8.7.0 and it produces the following warning:
npm WARN deprecated [email protected]: Object.observe isn't an ES7 proposal anymore and will be removed from V8 - don't use it for production code
When a single pug file changes, webpack compiles all the pug files through the loader. Just for 5 pug files, it takes 4 seconds to compile and reload. Is it possible to compile only modified pug file?
I have looked at cache-loader
but that doesnt work.
Running webpack with the webpack.prod.conf
file throws several Sass related errors.
https://github.com/SinanMtl/webpack-simple-starter/blob/master/build/webpack.prod.conf.js
Saw this trending on HN, congrats :)
Out of curiosity, I'd like to ask why you chose to roll your own dev-server.js
script, rather than use webpack-dev-server
. I maintain that part of webpack
at the moment, and I was curious not only in the decision, but if there were any deeper reasons behind it, and if we might be able to get webpack-dev-server
get to a better state.
Cheers ๐ป
Autoprefixer doesn't seem to work at all
I created a few pug pages, but only see the index page in the browser. Pages are all in the views/pages folder. Tried relative and absolute paths but they're not there when the devserver starts.
Thanks for the killer setup btw, not that known with webpack yet so this helps alot.
Base64 encoding doesn't work. Both in pug and in scss. How can I add this functionality? Because url-loader is already in webpack.base.conf and it doesn't do anything.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.