scarecrowdu / gulp-cli Goto Github PK
View Code? Open in Web Editor NEW使用gulp前端自动化构建工具搭建前端项目,作为初始化项目
使用gulp前端自动化构建工具搭建前端项目,作为初始化项目
不是会造成阻塞吗
发版本的时候为了避免浏览器读取了旧的缓存文件,需要为编译后的文件加hash值
-----------------------------
[16:49:46] Starting 'html'...
[16:49:46] Starting 'styles'...
[16:49:46] Starting 'script'...
[16:49:46] Starting 'images'...
[16:49:46] gulp-notify: [undefined Error] write callback called multiple times
[16:49:46] gulp-notify: [undefined Error] write callback called multiple times
[16:49:46] Finished 'images' after 211 ms
[16:49:46] Finished 'script' after 295 ms
events.js:165
throw er; // Unhandled 'error' event
^
Error: spawn /Users/andy/Desktop/gulp-cli/node_modules/[email protected]@optipng-bin/vendor/optipng ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:379:16)
at process._tickCallback (internal/process/next_tick.js:114:19)
Emitted 'error' event at:
at Immediate.<anonymous> (/Users/andy/Desktop/gulp-cli/node_modules/[email protected]@through2-concurrent/through2-concurrent.js:37:14)
at runCallback (timers.js:764:11)
at tryOnImmediate (timers.js:734:5)
at processImmediate (timers.js:716:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `gulp server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
已解决
因为在JS这个文件夹中我会用到类似layer/swiper之类的插件,独立一个文件夹,
例如:src>static>js>lib>layer
但这些插件自带了css样式表,也希望能在输出output的时候,css也能被输出到原位置。
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.