build bundle.js only
See original GitHub issueusing the preact-cli build is it possible to build the bundle.js file only?
Currently I’m trying out the widget template and building using
preact build --no-prerender --no-service-worker --template src/index.ejs
Then I’m seeing the following in the build folder
Ideally, I want to only output bundle.js + index.html as the other files are not used. If it possible to disable manifest.json, push-manifest.json, favicon and sw.js outputting?
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (9 by maintainers)
Top Results From Across the Web
How to Bundle a Simple Static Site Using Webpack - SitePoint
And webpack will create a bundle.js file in the dist folder. If you have a look at that file in your text editor...
Read more >Bundling JavaScript - LearnHowToProgram.com
By the end of this lesson, we will be using webpack to bundle all of our JavaScript files for us. Remember, bundling JavaScript...
Read more >How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
Step 1: Install Rollup and create a configuration file. ... Next, create a new file called rollup.config.js in the learn-rollup folder. Inside, add...
Read more >How to build only main.bundle.js - angular - Stack Overflow
I beleive main.bundle.js is the file that contains Angular application code. Is it possible that for the plugin, I only output main.bundle.js ......
Read more >How to Bundle an Application with Webpack - Sweetcode.io
Make sure you have Node.js on your machine. Webpack runs on Node.js version 8.0 and higher. It is compatible with other browsers except...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey use Preact and install with Preact-CLI - it’s the smaller, lighter version of React! Proceeds to generate ~20 bundle files that assume you’re building a PWA
deleting files via a post build script would work fine for me @prateekbh
But I think it would usefully to add something like a --bundle-only or --minimal flag which would only build the bundle.js and template for non-pwa apps