Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
89aba01
file config
Joelmarfas Sep 7, 2021
d90d344
scss added as well as js and html
Joelmarfas Sep 7, 2021
e365279
img files created
Joelmarfas Sep 7, 2021
aaa4da3
folders created
Joelmarfas Sep 7, 2021
2f36a6a
new folders
Joelmarfas Sep 7, 2021
2f7e3c1
new files architecture
Interna1ta Sep 7, 2021
96a23ab
added build and dev scripts
Interna1ta Sep 7, 2021
5a558f1
js exercises done
Interna1ta Sep 7, 2021
fd1bad8
added scss
Interna1ta Sep 8, 2021
ca03639
changed node-sass to sass package to fix the @use importantion
Interna1ta Sep 8, 2021
483b3d6
create css bundle
Interna1ta Sep 8, 2021
e63fd62
deleted comment in html
Interna1ta Sep 8, 2021
6f724ad
moved npm packages to development mode
Interna1ta Sep 8, 2021
1d267c5
Merge branch 'pere'
Interna1ta Sep 8, 2021
21b060c
added build/index.html to gitignore
Interna1ta Sep 8, 2021
27e8756
port commented + build
Joelmarfas Sep 8, 2021
475897c
clean webpack previous files
Interna1ta Sep 8, 2021
174fa28
Merge branch 'pere'
Interna1ta Sep 8, 2021
f2db1a6
staged changes before pull
Joelmarfas Sep 8, 2021
14314a0
build changed
Joelmarfas Sep 8, 2021
c097c49
images
Interna1ta Sep 8, 2021
52f7251
images
Interna1ta Sep 8, 2021
11b961e
fix merge
Interna1ta Sep 8, 2021
97e049e
fix deprecated hash, changed for fullhash
Interna1ta Sep 8, 2021
b0f6867
fix fullhash for contenthash in images
Interna1ta Sep 8, 2021
8460cc7
nnot deprecated image compressor
Interna1ta Sep 8, 2021
aa58fd7
added README
Interna1ta Sep 8, 2021
576d0c2
transformation from ES6 to ES5
Interna1ta Sep 8, 2021
9236cb2
added 1mg picture
Interna1ta Sep 8, 2021
80d6477
delete files and packages not used
Interna1ta Sep 8, 2021
45ff93f
improve build files structure
Interna1ta Sep 8, 2021
ca6752d
fix image folders in dev mode + git rm --cached
Interna1ta Sep 8, 2021
15d8cc7
fix type of hashing
Interna1ta Sep 8, 2021
063ca95
added TerserPlugin to minify Javascript
Interna1ta Sep 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
build
build/index.html
59 changes: 16 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,34 @@
`#html` `#css` `#sass` `#javascript` `#webpack` `#es6` `#master-in-software-engineering`

# WebPack Basics <!-- omit in toc -->
# Authors<!-- omit in toc -->

<p>
<img alt="Version" src="https://img.shields.io/badge/version-1.0-blue.svg?cacheSeconds=2592000" />
</p>

> WebPack is a tool that allows you to manage the resources and dependencies of a website.
> Pere Serra Bosch
>
> It mainly solves Javascript dependencies, although it can also work with css, images, Javascript preprocessors, CSS preprocessors, template systems, and much more.

## Index <!-- omit in toc -->

- [Requirements](#requirements)
- [Repository](#repository)
- [Technologies used](#technologies-used)
- [Project delivery](#project-delivery)
- [Resources](#resources)

## Requirements

- You must make use of the new features of ECMAScript 6
- You must import several files so that the final result is a single bundle for Javascript and a single bundle for sass
- Verify that the output bundle generated by WebPack for the Javascript layer has made the transformation from ECMAScript 6 to ECMAScript 5
- Create a clear and orderly directory structure


## Repository

First of all you must fork this project into your GitHub account.

To create a fork on GitHub is as easy as clicking the “fork” button on the repository page.

<img src="https://docs.github.com/assets/images/help/repository/fork_button.jpg" alt="Fork on GitHub" width='450'>
> Marc Parellada Palau
>
> Joel Martínez Fañanas

## Technologies used
## Dev modules used

\* HTML
\* **Babel**: is a tool that helps you write code in the latest version of JavaScript. When your supported environments don't support certain features natively, Babel will help you compile those features down to a supported version.

\* CSS
\* **HtmlWebpackPlugin**: simplifies creation of HTML files to serve your webpack bundles. This is especially useful for webpack bundles that include a hash in the filename which changes every compilation.

\* JS
\* **MiniCSSExtractPlugin**: extracts CSS into separate files. It creates a CSS file per JS file which contains CSS. It supports On-Demand-Loading of CSS and SourceMaps.

\* SASS
\* **CssMinimizerPlugin**: Allows to override default minify function. By default plugin uses cssnano package. Useful for using and testing unpublished versions or forks.

\* webpack
\* **CleanWebpackPlugin**: By default, this plugin will remove all files inside webpack's output.path directory, as well as all unused webpack assets after every successful rebuild.

\* ES6
\* **TerserPlugin**: This plugin uses terser to minify/minimize your JavaScript.

## Project delivery
\* **ImageMinimizerPlugin**: This plugin uses imagemin to optimize your images.

To deliver this project you must follow the steps indicated in the document:
## More modules used

- [Submitting a solution](https://www.notion.so/Submitting-a-solution-524dab1a71dd4b96903f26385e24cdb6)
\* **JQuery**: the purpose of jQuery is to make it much easier to use JavaScript on your website.

## Resources


- [WebPack Official](https://webpack.js.org/)
- [ECMAScript 6 compatibility](https://kangax.github.io/compat-table/es6/)
- [ECMAScript 6 compatibility](https://kangax.github.io/compat-table/es6/)
Loading