GithubHelp home page GithubHelp logo

[name] logging about parallel-webpack HOT 5 CLOSED

trivago avatar trivago commented on September 18, 2024
[name] logging

from parallel-webpack.

Comments (5)

pago avatar pago commented on September 18, 2024

Could you provide a minimal config file so that I have something to test with?

from parallel-webpack.

 avatar commented on September 18, 2024

Yes ofcourse, see a config example below. I also made a temporary repo with the probem, the hotfix, and some minimal configs, in case it might help.

'use strict';

const createVariants = require('parallel-webpack').createVariants;
const baseOptions = {
    output: {
        path: './dist',
        filename: '[name].transform.js'
    },
    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          exclude: /(node_modules|bower_components)/,
          loader: 'babel?presets[]=es2015',
        }
      ]
    }
}

const getVariantMultiCompilerConfig = () => {
    const variants = {
        entry: [
            {windows: './src/windows.js'},
            {unix: './src/unix.js'}
        ]
    };

    const createConfig = options => {
        return {
            entry: options.entry,
            output: options.output,
            module: options.module
        };
    }

    return createVariants(baseOptions, variants, createConfig);
}

module.exports = getVariantMultiCompilerConfig();

from parallel-webpack.

pago avatar pago commented on September 18, 2024

Thank you! I'll have a look at it during the next week. Awesome work and I'm sure the repository will be extremely helpful. 👍

from parallel-webpack.

shaharmor avatar shaharmor commented on September 18, 2024

Any update on this?

from parallel-webpack.

pago avatar pago commented on September 18, 2024

This feature is included in [email protected] for configurations where there is only a single entry point.

For other use cases (i.e. if you have more than a single entry point), please consider using the name property, i.e.

module.exports = {
    name: 'unix.bundle.js',
    entry: {
        unix: '...'
    }
};

from parallel-webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.