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.

[question] mutiple entry points

See original GitHub issue

let’s say we have

var gulp = require('gulp');
var webpack = require('webpack-stream');
gulp.task('default', function() {
  return gulp.src('src/entry.js')
    .pipe(webpack({
      entry: {
        app: 'src/app.js',
        test: 'test/test.js',
      },
      output: {
        filename: '[name].js',
      },
    }))
    .pipe(gulp.dest('dist/'));
});

It appears that entries will be ‘src/app.js’, ‘test/test.js’. However, I actually want ‘src/entry.js’ to be one of the entries. Why can’t we concat the ‘src/entry’ with webpack config entry? It will be useful when we define vendor code like vendor: ["jquery", "underscore", ...]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fclaussencommented, May 27, 2019

I have the exact same question. Does entry.js need to exist?

1reaction
danwadcommented, Mar 16, 2017

@shama, I think @ianwith’s question was with regards to the sample in the readme.

var gulp = require('gulp');
var webpack = require('webpack-stream');
gulp.task('default', function() {
  return gulp.src('src/entry.js')
    .pipe(webpack({
      entry: {
        app: 'src/app.js',
        test: 'test/test.js',
      },
      output: {
        filename: '[name].js',
      },
    }))
    .pipe(gulp.dest('dist/'));
});

What is the significance of gulp.src('src/entry.js') while the entry property is set in the config?

Could src/entry.js be anything? Does the file have to exist on the filesystem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Helping All Learners: Entry Points | EL Education
Awareness of these entry points can be used by both teachers and students to increase motivation and learn multiple perspectives on the topic...
Read more >
Multiple Entry Points Teaching Resources - TPT
Similar to a tic-tac-toe grid, this chart provides nine differentiated multiplication questions for your students. It is often used as an ...
Read more >
How can I ensure multiple entry points for all students?
How can I ensure multiple entry points for all students? "Embedding the problem-solving information within a real-world context helps students activate their ...
Read more >
Multiple Entry Points and Rich Math Tasks
Multiple Entry Points and Rich Math Tasks ... plan, make sense, look for entry points, reason, ask questions, make viable arguments, apply.
Read more >
Multiple Entry Points and Intelligences - Aquila Education
The survey takes less than 5 minutes to complete, and asks a series of questions regarding how well you enjoy nature, interacting with...
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