Skip to content
This repository was archived by the owner on May 1, 2020. It is now read-only.
This repository was archived by the owner on May 1, 2020. It is now read-only.

Ho to inject variable to IONIC_HTML_TO_SERVE using html-webpack-plugin #1526

@prakasa-tkpd

Description

@prakasa-tkpd

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Short description of the problem:

Its not problem, just additional step to using condition in file IONIC_HTML_TO_SERVE. How to parsing variable to IONIC_HTML_TO_SERVE using html plugin ?

What behavior are you expecting?

I can print webpack variable there.

Steps to reproduce:

  1. Add config.ionic_webpack
  2. Add html-webpack-plugin
  3. Add Option variable
  4. Print, but not show the option
insert any relevant code between the above and below backticks
new HtmlWebpackPlugin({
      filename: 'index.html',
      template: pathResolver('./src/index.html'),
      NODE_ENV: 'production',
    }),

Which @ionic/app-scripts version are you using?
3.2.3

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
Not yet other information.

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