Skip to content

Webpack loader and "new Worker" syntax #229

Discussion options

You must be logged in to vote

Here is the procedure to integrate webpack-import-meta-loader in Angular 10 (copied from #191 (comment)).

  1. Install the custom webpack builder: npm install -D @angular-builders/custom-webpack
  2. Install the plugin to load metadata: npm install -D @open-wc/webpack-import-meta-loader
  3. Edit your angular.json file:
"architect": {
      "build": {
          "builder": "@angular-builders/custom-webpack:browser",
          "options": {
            "customWebpackConfig": {
              "path": "./custom-webpack.config.js"
            },
  ...
      "serve": {
          "builder": "@angular-builders/custom-webpack:dev-server",
  ...
  1. Add a custom-webpack.config.js with the following content:
const w…

Replies: 2 comments 1 reply

This comment has been hidden.

Comment options

You must be logged in to vote
1 reply
@bastyen
Comment options

Answer selected by gildas-lormeau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants