Skip to content

Commit

Permalink
feat: add libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezcarlosjr committed Jul 16, 2023
1 parent 87f0232 commit f0fae1b
Show file tree
Hide file tree
Showing 9 changed files with 31,935 additions and 10,340 deletions.
13 changes: 11 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./extra-webpack.config.js",
"mergeRules": {
"module": {
"rules": "prepend"
}
},
"replaceDuplicatePlugins": true
},
"outputPath": "dist/terminal/browser",
"index": "src/index.html",
"main": "src/main.ts",
Expand Down Expand Up @@ -71,7 +80,7 @@
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"builder": "@angular-builders/custom-webpack:dev-server",
"configurations": {
"production": {
"browserTarget": "terminal:build:production"
Expand Down
6 changes: 6 additions & 0 deletions extra-webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

module.exports = {
node: { global: true },
plugins: [new NodePolyfillPlugin()]
};
Loading

0 comments on commit f0fae1b

Please sign in to comment.