Skip to content

Commit

Permalink
Merge pull request #340 from TAMULib/sprint20-339-extract-css
Browse files Browse the repository at this point in the history
Extracting css
  • Loading branch information
jeremythuff committed Aug 31, 2021
2 parents feb45fc + a44fb7a commit e038db7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .wvr-ud/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dist/bundle/tl-components.js"
],
"additionalAssets": [
"src/assets/**/*"
"src/assets/**/*",
"dist/bundle/styles.css"
]
}
12 changes: 10 additions & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,17 @@
}
],
"buildOptimizer": true,
"optimization": true,
"optimization": {
"scripts": true,
"fonts": {
"inline": true
},
"styles": {
"minify": true,
"inlineCritical": false
}
},
"sourceMap": false,
"extractCss": false,
"extractLicenses": true,
"namedChunks": false,
"commonChunk": false,
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-tl-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ cp.fork(__dirname + '/build-tl-config-template.js');

const files = [
`${componentsPath}/polyfills-${esv}.js`,
`${componentsPath}/styles-${esv}.js`,
`${componentsPath}/main-${esv}.js`
];

Expand All @@ -31,6 +30,7 @@ cp.fork(__dirname + '/build-tl-config-template.js');

fs.copy(`${componentsPath}/assets`, `${usagePath}/assets`);
fs.copy(`${componentsPath}/assets`, `${bundlePath}/assets`);
fs.copy(`${componentsPath}/styles.css`, `${bundlePath}/styles.css`);

fs.copy('projects/tl-elements/src/lib/shared/styles', `${elementsPath}/styles`);
fs.copy('scripts', `${elementsPath}/scripts`);
Expand Down
1 change: 1 addition & 0 deletions src/index-docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
border-bottom: 1px solid grey;
}
</style>
<link rel="stylesheet" type="text/css" href="/tamu-library-components/docs/usage/assets/styles.css">
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions src/index-reports.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
border-bottom: 1px solid grey;
}
</style>
<link rel="stylesheet" type="text/css" href="/tamu-library-components/docs/usage/assets/styles.css">
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions src/index-static.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
border-bottom: 1px solid grey;
}
</style>
<link rel="stylesheet" type="text/css" href="/tamu-library-components/docs/usage/assets/styles.css">
</head>

<body>
Expand Down
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
border-bottom: 1px solid grey;
}
</style>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>

<body class="wvr-components-loading">
Expand Down

0 comments on commit e038db7

Please sign in to comment.