Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I'm looking for some way to monitor when html, js and css files are saved to my local harddrive and then reload the browser. I'm working with static html-files only. Preferably something easy to setup. :)
Something like nodemon basically, but for static files.
If you need to reload page to load latest edits use Live.js
There's LiveReload which comes as standalone application, browser plugin (for several browsers) and npm module to integrate into your code.
In case you integrate it in your code (with gulp for example), the setup isn't as easy anymore, and I'd rather suggest something like browsersync
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 17 days ago.
Improve this question
Well, I made a little research and decided to remove dead code with Tree Shivering, but it turned out that all JS scripts with HTML are sent by PHP to the browser and it doesn't work with npm run build or something. I don't know how to remove dead code, if only manually. The project runs on Open Server and I can't see what is going on on my terminal. Any suggestions?
The PHP runs serverside, the JavaScript clientside.
The JavaScript is never called by PHP. Instead, it's send to the client (the browser) together with the HTML generated by PHP. The browser executes the JavaScript.
A method like Tree Shivering, will not be able to tell you what part of the JS is not used.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
hi my friends I have a question
how can I create multi language site with Nuxt?
my site is ssr and I don't want use any package beacuse client wants to me handle this without package
Not sure why you don't want to use the i18n package but as told before: You can create your own solution with some vanilla code I guess.
IMO, you will lose quite some time doing this. I'd prefer to use a package who does that well rather than trying to achieve it myself because I'd probably bump into un-expected edge cases.
You can always get inspiration from the i18n module source code itself but then, why not use it directly. Using a battle tested package in the JS world is not a bad idea. Especially if it's mantained well (by Pooia).
Reminds me of this one: https://imgs.xkcd.com/comics/standards.png
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Is it possible to write text in .txt file using javascript or angularjs or phonegap without using any backend
Is it possible to write text in .txt file using javascript or angularjs without using any backend
Short answer - No
detailed answer:
You must store somewhere your file and it can be done by server side only.
The client side (AngularJs in your case) loads vendors/bundle sources on web browsers and it doesn't have any access to your file system.
I believe Chrome extensions: fileSystem is not your case
is it possible in phonegap?
Well, its a hybrid mobile infrastructure and you have plugins to access mobile filesystem
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
Some malware is injecting this script somewhere in my wordpress main page. I already went through all files in Editor but I find nothing about this. Any idea where can I find it? Its driving me crazy.
This script is injecting adware popups in my wordpress website.
Try downloading the whole theme folder and plugins folder (with all plugins). Then you would need to run search across all those files. Usually malware code is using eval functions so you should search for eval across all those files. Searching one by one would take forever so use grep tool.
For windows I would recommend windows grep
http://www.wingrep.com/
For Mac I would recommend visualGrep app which is paid app and costs around 2 bucks but totally worth it.
If you have linux then you would need to find the software yourself or you can run such a search from the command line. (Actually you can use CLI on any system but I just prefer having app with GUI fur such task)
in 99% of cases (from my experience) you will find something like:
eval(base64_decode('dsalkndsalndsnldakslasdkn'));
That will be the malware code and you should take care of it (remove). If the code is in the plugin, then you should get rid of such a plugin probably.
Hope this helps.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I understand the basic principles of script/style compression. What I would like to know is how do I integrate minified/combined scripts into my process and not interrupt my normal development flow?
I obviously want to use the regular files while developing then switch to the minified versions for deployment. I currently use YepNope to load my scripts. Is there some sort of conditional I could use to tell the browser to load the regular files?
Environment: VS 2010
My solution to this was to go with Microsoft's own Ajax Min its pretty nice. Compression is on par with some others I used.
As far as telling the browser to load minified versions or full, I added that into the post build script. Basically if you are in this particular environment then do not build the minified versions. Then in the js I have a little flag that points to one or the other depending on environment.
Hope this helps.