question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build bundle.js only

See original GitHub issue

using 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 Screen Shot 2020-01-16 at 10 10 06 am

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:open
  • Created 4 years ago
  • Comments:20 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
alxvallejocommented, Mar 6, 2020

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

5reactions
fatlinesofcodecommented, Jan 16, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found