Skip to content

Commit

Permalink
create vendor.min.css and vendor.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
zivillian committed Oct 16, 2023
1 parent 90672fe commit b3b14e1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
options: {
assets: ["app.min.css", "app.min.js", "app.config.js", "favicon.ico"],
assets: ["vendor.min.css", "vendor.min.js", "app.min.css", "app.min.js", "app.config.js", "favicon.ico"],
baseDir: "./dist",
},
src: ["dist/index.html"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@ module.exports = {
src: ["temp/app.css", "<%= dom_munger.data.appcss %>"],
dest: "dist/app.min.css",
},
vendor: {
src: [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"node_modules/font-awesome/css/font-awesome.min.css",
],
dest: "dist/vendor.min.css",
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ module.exports = {
options: {
remove: ['script[data-remove!="false"]', 'link[data-remove="true"]'],
append: [
{ selector: "body", html: '<script src="/vendor.min.js"></script>' },
{
selector: "body",
html: '<script src="/app.min.js"></script><script src="/app.config.js"></script>',
},
{ selector: "head", html: '<link rel="stylesheet" href="/vendor.min.css">' },
{ selector: "head", html: '<link rel="stylesheet" href="/app.min.css">' },
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,12 @@ module.exports = {
src: "dist/app.js",
dest: "dist/app.min.js",
},
vendor: {
src: [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/bootstrap/dist/js/bootstrap.min.js",
"node_modules/lodash/lodash.min.js",
],
dest: "dist/vendor.min.js",
},
};
20 changes: 14 additions & 6 deletions src/Exceptionless.Web/ClientApp.angular/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<meta name="msapplication-task" content="name=New Events; action-uri=/new; icon-uri=/img/icons/new.ico" />
<meta name="msapplication-task" content="name=Events; action-uri=/; icon-uri=/img/icons/events.ico" />

<link rel="dns-prefetch" href="https://cdn.jsdelivr.net" />
<link rel="dns-prefetch" href="https://cdn.jsdelivr.net" data-remove="true" />
<link rel="dns-prefetch" href="https://fonts.googleapis.com" />
<link rel="dns-prefetch" href="https://widget.intercom.io" />
<link rel="dns-prefetch" href="https://www.googletagmanager.com" />
Expand All @@ -48,8 +48,16 @@
<link rel="apple-touch-icon" sizes="114x114" href="/touch-icon-ipad-114.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/touch-icon-ipad-144.png" />

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css"
data-remove="true"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css"
data-remove="true"
/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700" />

<link href="app.less" type="text/css" rel="stylesheet/less" data-concat="true" data-remove="true" />
Expand All @@ -62,17 +70,17 @@
<script
src="https://cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js"
data-concat="false"
data-remove="false"
data-remove="true"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
data-concat="false"
data-remove="false"
data-remove="true"
></script>
<script
src="https://cdn.jsdelivr.net/npm/lodash@4.17.21/lodash.min.js"
data-concat="false"
data-remove="false"
data-remove="true"
></script>

<!-- Livereload script for development only (stripped during dist build) -->
Expand Down

0 comments on commit b3b14e1

Please sign in to comment.