Browse Source

add deploy

develop
Carmine De Rosa 5 years ago
parent
commit
72124400ce
  1. 2
      .gitignore
  2. 23
      auth/marketmind.pem
  3. 4
      components/ambassador/ambassador.html
  4. 4
      components/ambassador/ambassador.scss
  5. 2
      components/footer/footer.html
  6. 8
      components/header/header.html
  7. 25
      components/header/header.scss
  8. 4
      components/info/info.html
  9. 14
      components/questions/questions.html
  10. 20
      components/register/register.html
  11. 2
      components/teacher/teacher.html
  12. 16
      deploy.sh
  13. BIN
      images/teacher.png
  14. 19
      package.json
  15. 2
      pages/index.ejs
  16. 29
      src/js/index.js
  17. 10
      src/js/jquery.ihavecookies.min.js
  18. 45
      src/scss/global.scss
  19. 9
      src/scss/variables.scss
  20. 12
      webpack.config.js

2
.gitignore

@ -311,3 +311,5 @@ public/
package-lock.json
img/
docs/

23
auth/marketmind.pem

@ -0,0 +1,23 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAwIaPYPemuR3j3uyc6uT7HmTCEotVl1nDI41QVuF9rYFA4oL3ET45NAzWuZPB
7F2zeOMpjU3KtiNvMb1qR/a8gQHceI9wOWfq6r8IOxm/r+ZKtoBbsQg/ygfmKtNJ1NcsUIGVhv1G
4buoOaU65UbATO8uXC6zmuwk/q7VnXRcoequqnXhg06TBeIFGtf92BxUdjUAEDpHyN11d0zDVN7N
SRyvt93YSusB3UVPlds9le0xqOIXEMQzvCheqODLGpW0CR1sq02SmwAzvosBiMB4PHYlpkHptGXt
MujSjzIJE2PrlM4ZOYLMqSUk62qh7vnFMaOb/GtN1wo8uh10qIkfuwIDAQABAoIBADwsEjXpURd8
axLqeuTDamUGcs2e9MJYELBU4240DbajtibVbejavMAy3w2jS7HXW1eGEB+U161zh7ZREB2r1SCw
9zpLAnU+sGJsEGOAWbPdUy6VEZNUE7POIjbyUJoQIk6LIbPOB1BX+W0C4lR0d3fULXYsNoBOHAXp
mOQcUTNdfY3imXMTQkx+wKPyp7VW7MN1uHowFU039HPy4BSxKtGrMXvt7vm8OzWzqUp5sYMZGIcK
Hi5s1wo9vzaqXJgMuqAPvFnLrx/wF+EYfUcjBZVck6Oy3CbB2O8z2XUlkeGzFrXHYgyvi//GXNQz
sABkGmvWazwdlNlFzz5y7bOy5hkCgYEA9F+svyPFcdkO0Xdx/MWaS6ghtaCRoTiGx1Zlx6jtVDEB
jYIL9oOKjGACCxyTo1cLvh0WTf2J9KWhCYS3GQEaTkG+EUA5HIob2m9Khvhbbgtlmb0O+U2mMTT9
5GHyrCGGMWqdUvQQArjhDoKxDos5NDJAty34x+jfDXIyQ+xS9a0CgYEAya9oEb4AHrdN2DSWA5Ju
aTYHcXtJnvYO2EYHvYx1D1L/SSpdxm/crc6QoZiM4UmvGdUgkf0nzkp/ql+ln9JzbYSNgffvEVKt
++7y6RPYwFkBvHZ/PgUQM4+sjmdATNGb1OzPlBC2DtMNoB6N55OLPTK34WND7jEgKtdCEDHTCAcC
gYBr0WaTMoIjt+PM0Uluf/SSmsy8qOp32kvE2T6wt7x2X+TSfWUvz1uqkZV1N5eAAqDAsW6s3Eco
tIb3fyGVm6Hykxj73X0VNW4SkvWr1Rnp1IdwLDTWE8dWgI3gXMLH5UaiuOpOtjX2LYHGeC0MQKrt
d5qL93GDKiB3e0HoK/VyRQKBgCYKQH3AMXOZrUQPPxAzaUHM4ACGeW9TB5/BLaqRuG6IgAADzqYj
6SKbKGpiRIglhrI/oaIHdp+RK50t5yZK4lyQuMP/yIai6o/vFL/jb2lwIES0sPE4sUKYYbqGPPmA
O30goVJTCJOpOROvT6KTEJsdWtNXDrP5bhDGgv5c92m3AoGASrDKqIP5kazJy0wQWw/C2iE3qsMb
b/WSt64yOq7OLZlSCh+7P1K3X4ecqfy1fVfQ7rvM35tJiNNhspqZsEmsZg09m4h6jzYLuxNs2+I7
65M3yOcbEixRdXKiv2PBBRK5qfMOogkRIEY4ZPzC32LXVgi8qYvxPMqfBBS12BsNSFY=
-----END RSA PRIVATE KEY-----

4
components/ambassador/ambassador.html

@ -1,6 +1,6 @@
<div class="component-ambassador">
<div class="row container mx-auto">
<div class="col-10 col-md-6 mx-auto mr-md-0">
<div class="col-10 col-md-6 mx-auto mr-md-0 my-4">
<h3 class="title">Diventa nostro ambassador</h3>
<div class="row">
@ -9,7 +9,7 @@
<p class="text">
Compila la lettera di motivazione e rispondi alle nostre domande, puoi vincere un free-pass per la masterclass.
</p>
<button class="button button-blue mt-4">Compila</button>
<a href="/docs/Borsa_di_studio.docx" target="_blank" class="button button-blue mt-4">Compila e invia la candidatura</a>
</div>
</div>
</div>

4
components/ambassador/ambassador.scss

@ -9,7 +9,7 @@
font-size: $font-48;
font-weight: normal;
color: $blue;
padding: 40px 0 30px 0;
padding: 0 0 30px 0;
}
.subtitle {
@ -30,6 +30,8 @@
}
.image {
object-fit: cover;
width: 100%;
height: 100%;
}
}

2
components/footer/footer.html

@ -7,7 +7,7 @@
<img class="image mr-auto" src="/images/marketmind.svg">
</div>
<div class="col-12 text">
Copyright – ANES, MarketMind Research. Per info: informazioni@info.com
Copyright 2020 - ANES - Via Crocefisso, 5, 20122 Milano. Per info: <a href="mailto:anes@anes.it">anes@anes.it</a>
</div>
</div>
</div>

8
components/header/header.html

@ -11,13 +11,15 @@
<img class="image my-2" src="/images/marketmind.svg">
</div>
<div class="col-12">
<p class="suptitle">Corso online</p>
<h1 class="title">
Intelligenza Artificiale: come implementarla operativamente in azienda
Intelligenza Artificiale:<br>come implementarla operativamente in azienda
</h1>
<p class="subtitle">Master class</p>
<p class="text">
La Masterclass in Intelligenza Artificiale per il business è un weekend full-immersion di formazione in cui imparerai a comprendere e utilizzare le nuove tecnologie di A.I. per implementare innovativi prodotti e servizi.
La Masterclass in Intelligenza Artificiale per il business è una giornata full immersion di formazione a distanza in cui imparerai a comprendere e utilizzare le nuove tecnologie di A.I. per implementare prodotti e servizi innovativi. L'intera Masterclass si terrà online con un docente dedicato che ti seguirà per tutta la giornata di formazione.
</p>
</div>
</div>
@ -29,7 +31,7 @@
<div class="line">
<div class="container mx-auto">
<span class="line-text pr-2">Codice Early Bird -20% </span>
<span class="line-text pr-2">Codice Early Bird -22% </span>
<span class="code">XPR3877</span>
</div>
</div>

25
components/header/header.scss

@ -15,7 +15,7 @@
font-weight: 300;
line-height: 45px;
color: $blue;
padding: 40px 0 5px 0;
padding: 10px 0 5px 0;
margin: 0;
&:after {
@ -28,6 +28,16 @@
}
}
.suptitle {
font-size: $font-18;
font-weight: bold;
line-height: 20px;
color: $black;
padding: 25px 0 0 0;
margin: 0;
text-transform: uppercase;
}
.subtitle {
font-size: $font-18;
font-weight: bold;
@ -79,16 +89,21 @@
.component-header {
.title {
font-size: $font-50;
line-height: 60px;
//font-size: $font-50;
//line-height: 60px;
font-size: $font-44;
line-height: $font-50;
}
.subtitle {
font-size: $font-18;
//font-size: $font-18;
font-size: $font-16;
padding-bottom: 15px;
}
.text {
font-size: $font-18;
//font-size: $font-18;
font-size: $font-16;
}
.line {

4
components/info/info.html

@ -3,8 +3,8 @@
<div class="col-10 col-md-6 mx-auto text-center">
<h3 class="title">Hai bisogno di ulteriori informazioni?</h3>
<p class="text">
Scrivi a<br>
informazioni@info.it
Fabiola Iannaccone di Anes è a tua disposizione<br>
scrivi all'indirizzo: <a href="mailto:anes@anes.it">anes@anes.it</a>
</p>
</div>
</div>

14
components/questions/questions.html

@ -3,23 +3,23 @@
<div class="col-10 col-md-6 mx-auto text-center">
<h3 class="title">Alcune domande a cui saprai rispondere</h3>
<p class="item">
Cos'è esattamente l'intelligenza artificiale?<br>
E quali sono i suoi limiti attuali?
Cos'è esattamente l'<b>Intelligenza Artificiale</b>?<br>
E quali sono i suoi <b>limiti</b> attuali?
</p>
<p class="item">
Cos'è il Machine Learning e che valore può consegnare alla mia azienda / startup?
Cos'è il <b>Machine Learning</b> e che valore può consegnare alla mia azienda / startup?
</p>
<p class="item">
Dove reperire la tecnologia necessaria per sviluppare un primo progetto di AI?
Dove reperire la <b>tecnologia necessaria</b> per sviluppare un primo progetto di AI?
</p>
<p class="item">
Quali sono le metodologie che consentono di prototipare rapidamente proof-of-concept con poco effort e poco budget?
Quali sono le <b>metodologie</b> che consentono di prototipare rapidamente proof-of-concept con poco effort e poco budget?
</p>
<p class="item">
Qual è il processo di adozione che dovrei seguire per gestire l'implementazione di un primo progetto di AI?
Qual è il <b>processo di adozione</b> che dovrei seguire per gestire l'implementazione di un primo progetto di AI?
</p>
<p class="item">
Come AI può consentire di aiutare nel funnel di vendita o di marketing?
Come l'AI può consentire di aiutare nel <b>funnel di vendita o di marketing</b>?
</p>
</div>

20
components/register/register.html

@ -3,29 +3,29 @@
<div class="col-10 col-md-5 pt-5 mx-auto ml-md-auto mr-md-0 order-1 order-md-0">
<div class="item">
<span class="icon icon-marker"></span>
<span class="title">Milano</span>
<span class="title">Completamente on-line</span>
</div>
<div class="item">
<span class="icon icon-calendar"></span>
<span class="title">6-7 Giugno 2020</span>
<span class="title">28 Aprile 2020 (9.30-16.00)</span>
</div>
<div class="item">
<span class="icon icon-hourglass"></span>
<span class="title">14 ore di lezioni e workshop</span>
<span class="title">5 ore e 30 minuti di lezioni frontali in diretta e workshop</span>
</div>
<div class="item">
<span class="icon icon-tag"></span>
<span class="title">EARLY BIRD 300</span>
<span class="subtitle">registrazioni fino al 15/3/2020</span>
<span class="title mt-2">ADVANCED: 400€ </span>
<span class="subtitle">registrazioni fino al 15/4/2020</span>
<span class="title">EARLY BIRD 225</span>
<span class="subtitle">Registrazioni fino al 16/04/2020</span>
<span class="title mt-2">ADVANCED: 290€ </span>
<span class="subtitle">Registrazioni dal 17/04/2020</span>
</div>
<button class="button button-blue mt-4">Registrazione</button>
<a href="https://www.eventbrite.com/e/biglietti-intelligenza-artificiale-come-implementarla-operativamente-in-azienda-102163565976" target="_blank" class="button button-blue mt-4">Registrati subito su EventBrite</a>
</div>
<div class="list col-10 col-md-4 mx-auto">
<h3 class="title">A chi è rivolto</h3>
<p class="subtitle">Il weekend full immersion è dedicato a:</p>
<p class="subtitle">La giornata online di full immersion è dedicata a:</p>
<span class="list-item">
Manager e decision maker che desiderano comprendere e sfruttare il nuovo trend tecnologico dell'Intelligenza Artificiale da un punto di vista business e organizzativo.
</span>
@ -33,7 +33,7 @@
Professionisti del settore IT che desiderano comprendere le metodologie di adozione e come analizzare e valutare i business case abilitati da tecnologie di Intelligenza Artificiale.
</span>
<span class="list-item">
Chiunque voglia diventare una figura di riferimento all'interno della propria società/startup per tutte le tematiche inerenti all'A.I..
Chiunque voglia diventare una figura di riferimento all'interno della propria società/startup per tutte le tematiche inerenti all'Intelligenza Artificiale.
</span>
</div>
</div>

2
components/teacher/teacher.html

@ -10,7 +10,7 @@
È un co-founder e partner di MarketMind Research e nella sua carriera ha aiutato numerose organizzazioni (tra cui banche, società di assicurazioni, ospedali e università) a implementare progetti di Intelligenza Artificiale e predictive analytics.
</p>
<p class="text">
È attualmente docente a contratto presso l'Università Luigi Bocconi e presso la scuola d'innovazione Talent Garden dove si occupa di Intelligenza Artificiale applicata.Ha lavorato come consulente in numerose multinazionali, in particolare all'interno del settore IT Governance.
È attualmente docente a contratto presso l'Università Luigi Bocconi e presso la scuola d'innovazione Talent Garden dove si occupa di Intelligenza Artificiale applicata. Durante l'intera giornata di formazione ti aiuterà a comprendere la rivoluzione dell'A.I. grazie a simulazioni, workshop e analisi di business case reali.
</p>
</div>
</div>

16
deploy.sh

@ -0,0 +1,16 @@
#!/bin/bash
BASE="http://www.anesacademy.com/"
BASE_PARSED=$(echo $BASE | sed 's/\//\\\//g')
cd public
for f in *.html
do
sed -i "s/href\=\"\//href\=\"$BASE_PARSED/g" "$f"
sed -i "s/src\=\"\//src\=\"$BASE_PARSED/g" "$f"
sed -i "s/src\=\"\.\//src\=\"$BASE_PARSED/g" "$f"
done
cd ..
scp -r -i ./auth/marketmind.pem ./public/* ubuntu@3.94.203.176:/var/www/anesacademy.com/

BIN
images/teacher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 532 KiB

19
package.json

@ -7,6 +7,7 @@
"scripts": {
"dev": "nodemon --watch webpack.config.js --exec \"webpack --config webpack.config.js --watch --progress --mode development\"",
"prod": "webpack --config webpack.config.js --mode none --env.prod",
"deploy": "sh deploy.sh",
"add-comp": "sh ./comps.sh add",
"del-comp": "sh ./comps.sh del",
"preview": "http-server",
@ -15,21 +16,22 @@
"author": "Dslak",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.5.4",
"@babel/preset-env": "^7.6.3",
"autoprefixer": "^9.6.0",
"babel-eslint": "^10.0.2",
"babel-loader": "^8.0.6",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"autoprefixer": "^9.7.6",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.1.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-assign": "^6.22.0",
"babel-preset-env": "^1.7.0",
"base-href-webpack-plugin": "^2.0.0",
"bootstrap": "^4.3.1",
"copy-webpack-plugin": "^5.0.3",
"css-loader": "^3.0.0",
"css-loader": "^3.5.1",
"es6-promise-promise": "^1.0.0",
"eslint": "^6.0.1",
"eslint-config-google": "^0.13.0",
"eslint-config-prettier": "^6.0.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.0",
"extract-loader": "^3.1.0",
"file-loader": "^4.0.0",
@ -39,6 +41,7 @@
"http-server": "^0.12.1",
"jquery": "^3.4.1",
"mini-css-extract-plugin": "^0.7.0",
"minimist": "^1.2.5",
"node-sass": "^4.12.0",
"nodemon": "^1.19.1",
"popper.js": "^1.15.0",
@ -46,7 +49,7 @@
"prettier": "^1.18.2",
"sass-loader": "^7.1.0",
"url-loader": "^2.0.1",
"webpack": "^4.41.1",
"webpack": "^4.42.1",
"webpack-cli": "^3.3.9",
"webpack-notifier": "^1.8.0"
}

2
pages/index.ejs

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Anes</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, user-scalable=no,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="description" content=".">
<link rel="stylesheet" href="/assets/css/styles.css">
</head>

29
src/js/index.js

@ -18,3 +18,32 @@ window.readyResize = (callback, orientation = false) => {
}
};
$('body').ihavecookies({
title: "Cookies & Privacy",
message: "Questo sito web utilizza cookie tecnici per assicurarti di ottenere la migliore esperienza sul nostro portale.",
expires: 30,
moreInfoLabel: 'Maggiori informazioni',
link: "https://anes.it/informativa-sui-cookie/",
acceptBtnLabel: 'Accetta i Cookies',
advancedBtnLabel: 'Personalizza Cookies',
uncheckBoxes: false,
cookieTypesTitle: 'Seleziona i Cookies da accettare',
fixedCookieTypeLabel:'Necessari',
fixedCookieTypeDesc: 'Si tratta di cookie essenziali per il corretto funzionamento del sito Web.',
cookieTypes: [
{
type: 'Analytics',
value: 'analytics',
description: 'Cookie relativi a statistiche sulle visite al sito, tipi di browser, ecc'
},
{
type: 'Marketing',
value: 'marketing',
description: 'Cookie relativi al marketing, e.g. newsletters, social media, etc'
}
],
onAccept: function(){
}
})

10
src/js/jquery.ihavecookies.min.js

@ -0,0 +1,10 @@
/*!
* ihavecookies - jQuery plugin for displaying cookie/privacy message
* v0.3.1
*
* Copyright (c) 2018 Ketan Mistry (https://iamketan.com.au)
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
*/
!function(e){e.fn.ihavecookies=function(n){var a=e(this),c=e.extend({cookieTypes:[{type:"Site Preferences",value:"preferences",description:"These are cookies that are related to your site preferences, e.g. remembering your username, site colours, etc."},{type:"Analytics",value:"analytics",description:"Cookies related to site visits, browser types, etc."},{type:"Marketing",value:"marketing",description:"Cookies related to marketing, e.g. newsletters, social media, etc"}],title:"Cookies & Privacy",message:"Cookies enable you to use shopping carts and to personalize your experience on our sites, tell us which parts of our websites people have visited, help us measure the effectiveness of ads and web searches, and give us insights into user behavior so we can improve our communications and products.",link:"/privacy-policy",delay:2e3,expires:30,moreInfoLabel:"More information",acceptBtnLabel:"Accept Cookies",advancedBtnLabel:"Customise Cookies",cookieTypesTitle:"Select cookies to accept",fixedCookieTypeLabel:"Necessary",fixedCookieTypeDesc:"These are cookies that are essential for the website to work correctly.",onAccept:function(){},uncheckBoxes:!1},n),r=t("cookieControl"),s=t("cookieControlPrefs");if(r&&s){var p=!0;"false"==r&&(p=!1),o(p,c.expires)}else{var d='<li><input type="checkbox" name="gdpr[]" value="necessary" checked="checked" disabled="disabled"> <label title="'+c.fixedCookieTypeDesc+'">'+c.fixedCookieTypeLabel+"</label></li>";e.each(c.cookieTypes,function(e,o){if(""!==o.type&&""!==o.value){var i="";o.description!==!1&&(i=' title="'+o.description+'"'),d+='<li><input type="checkbox" id="gdpr-cookietype-'+o.value+'" name="gdpr[]" value="'+o.value+'" data-auto="on"> <label for="gdpr-cookietype-'+o.value+'"'+i+">"+o.type+"</label></li>"}});var l='<div id="gdpr-cookie-message"><h4>'+c.title+"</h4><p>"+c.message+' <a href="'+c.link+'">'+c.moreInfoLabel+'</a><div id="gdpr-cookie-types" style="display:none;"><h5>'+c.cookieTypesTitle+"</h5><ul>"+d+'</ul></div><p><button id="gdpr-cookie-accept" type="button">'+c.acceptBtnLabel+'</button><button id="gdpr-cookie-advanced" type="button">'+c.advancedBtnLabel+"</button></p></div>";setTimeout(function(){e(a).append(l),e("#gdpr-cookie-message").hide().fadeIn("slow")},c.delay),e("body").on("click","#gdpr-cookie-accept",function(){o(!0,c.expires),e('input[name="gdpr[]"][data-auto="on"]').prop("checked",!0);var t=[];e.each(e('input[name="gdpr[]"]').serializeArray(),function(e,o){t.push(o.value)}),i("cookieControlPrefs",JSON.stringify(t),365),c.onAccept.call(this)}),e("body").on("click","#gdpr-cookie-advanced",function(){e('input[name="gdpr[]"]:not(:disabled)').attr("data-auto","off").prop("checked",!1),e("#gdpr-cookie-types").slideDown("fast",function(){e("#gdpr-cookie-advanced").prop("disabled",!0)})})}c.uncheckBoxes===!0&&e('input[type="checkbox"].ihavecookies').prop("checked",!1)},e.fn.ihavecookies.cookie=function(){var e=t("cookieControlPrefs");return JSON.parse(e)},e.fn.ihavecookies.preference=function(e){var o=t("cookieControl"),i=t("cookieControlPrefs");return i=JSON.parse(i),o!==!1&&(i!==!1&&i.indexOf(e)!==-1)};var o=function(o,t){i("cookieControl",o,t),e("#gdpr-cookie-message").fadeOut("fast",function(){e(this).remove()})},i=function(e,o,i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var a="expires="+n.toUTCString();return document.cookie=e+"="+o+";"+a+";path=/",t(e)},t=function(e){for(var o=e+"=",i=decodeURIComponent(document.cookie),t=i.split(";"),n=0;n<t.length;n++){for(var a=t[n];" "==a.charAt(0);)a=a.substring(1);if(0===a.indexOf(o))return a.substring(o.length,a.length)}return!1}}(jQuery);

45
src/scss/global.scss

@ -123,3 +123,48 @@ button {
.debug-border {
border: 1px solid red;
}
#gdpr-cookie-message {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: $black-alpha;
color: $white;
padding: 10px;
font-size: $font-14;
ul {
list-style: none;
li {
display: flex;
label {
padding-left: 10px;
}
}
}
h4 {
font-size: $font-18;
}
input {
width: auto;
}
button {
border: none;
color: $white;
background: $blue;
border-radius: 0;
height: auto;
display: block;
padding: 5px 10px;
text-align: center;
@include font-style( $font-sans, 'regular', $font-14);
text-transform: uppercase;
float: left;
margin: 0 20px 10px 0;
}
}

9
src/scss/variables.scss

@ -26,14 +26,7 @@ $grid-breakpoints: (
$container-max-widths: (
sm: 708px,
md: 984px,
lg: 1440px,
xl: 1560px
);
$container-max-widths: (
sm: 768px,
md: 984px,
lg: 1440px,
lg: 1200px,
xl: 1560px
);

12
webpack.config.js

@ -6,6 +6,7 @@ const fs = require('fs')
const WebpackNotifierPlugin = require('webpack-notifier')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const { BaseHrefWebpackPlugin } = require('base-href-webpack-plugin')
const basePath = './'
const pagesPath = path.join(__dirname, './pages')
@ -13,6 +14,7 @@ const distPath = path.join(__dirname, './public')
const componentPath = path.join(__dirname, './components')
const imagesPath = path.join(__dirname, './images')
const assetsPath = path.join(__dirname, './assets')
const docsPath = path.join(__dirname, './docs')
const srcPath = './src'
let components = []
@ -23,6 +25,7 @@ module.exports = (env) => {
const isProd = env && env.prod || false
entries.push(srcPath + '/js/jquery.ihavecookies.min.js')
entries.push(srcPath + '/js/index.js')
entries.push(srcPath + '/scss/main.scss')
@ -31,6 +34,8 @@ module.exports = (env) => {
})
plugins = [
new HtmlWebpackPlugin(),
new BaseHrefWebpackPlugin({ baseHref: isProd ? 'http://tmp.it/' : '/' }),
new WebpackNotifierPlugin({
title: 'Anes',
contentImage: path.join(__dirname, basePath + '/images/logoWP.png'),
@ -53,6 +58,13 @@ module.exports = (env) => {
from: '*.*',
to: distPath + '/images',
},
]),
new CopyWebpackPlugin([
{
context: docsPath,
from: '*.*',
to: distPath + '/docs',
},
])
]

Loading…
Cancel
Save