Add Webpack page

This commit is contained in:
Jeremy Thomas
2018-07-14 18:38:27 +01:00
parent 0efd856f52
commit 884d887f44
15 changed files with 482 additions and 44 deletions

View File

@@ -10,26 +10,6 @@ breadcrumb:
- customize-node-sass
---
{% capture init %}
npm init
{% endcapture %}
{% capture step_1 %}
<div class="content">
<p>
In your terminal, create a new folder called <code>mybulma</code>, navigate to it, then type the following command:
</p>
</div>
{% highlight bash %}{{ init }}{% endhighlight %}
<div class="content">
<p>
This will launch an interactive setup to create <code>package.json</code>. When prompted for an <strong>entry point</strong>, enter <code>sass/mystyles.scss</code>.
</p>
</div>
{% endcapture %}
{% capture dependencies %}
npm install node-sass --save-dev
npm install bulma --save-dev
@@ -112,10 +92,10 @@ npm start
<p>
To test it out, go in your <strong>terminal</strong> and run the following command:
</p>
{% highlight bash %}{{ npm_build }}{% endhighlight %}
</div>
{% highlight bash %}{{ npm_build }}{% endhighlight %}
<div class="content">
<p>
If set up correctly, you will see the following message:
@@ -149,9 +129,9 @@ npm start
{% highlight bash %}{{ npm_watch }}{% endhighlight %}
{% endcapture %}
{% include components/step.html
title='1. Create a <code style="white-space: nowrap;">package.json</code> file'
content=step_1
{% include steps/create-package.html
number="1"
entry="sass/mystyles.scss"
%}
<hr>
@@ -165,7 +145,7 @@ npm start
{% include steps/create-sass-file.html
number="3"
path="../node_modules"
path="../node_modules/bulma/bulma.sass"
%}
<hr>