Skip to content

Modifying Webpack Configuration #2113

Closed
@mikelunn

Description

@mikelunn

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?) Windows 8
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here: angular-cli: 1.0.0-beta.11-webpack.8
  3. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc. ng build
  4. The log given by the failure. Normally this include a stack trace and some
    more information. No failure, just a question
  5. Mention any other details that might be useful.

Is there anyway to modify the webpack dev/prod build processes that are running. Basically, html-webpack-plugin step is not needed in the scenario were an applications initial page is being server rendered by a server-side technology like ASP.Net. In my case I would only need to add script references to index.cshtml to the generated bundles. Unfortunately, when running ng build --prod, these references are broken by webpack adding hashes to generated files. I would rely on the server side technology to cache bust. Despite these small short-comings i'm really enjoying the CLI.


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions