Skip to content

Commit

Permalink
index, stylesheet -> main
Browse files Browse the repository at this point in the history
  • Loading branch information
mpraglowski committed Mar 27, 2020
1 parent 0e5b87e commit 7c00612
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
3 changes: 1 addition & 2 deletions Rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env ruby

ignore '/index.js'
ignore '/stylesheet.css'
ignore '/main.*'

compile '/**/*.html' do
layout '/default.*'
Expand Down
1 change: 0 additions & 1 deletion content/index.js

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions content/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("./main.css");
4 changes: 2 additions & 2 deletions layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<head>
<meta charset="utf-8" />
<title><%= @item[:title] %></title>
<link rel="stylesheet" href="/stylesheet.css" />
<script src="/index.js"></script>
<link rel="stylesheet" href="/main.css" />
</head>
<body class="bg-gray-100 text-lg">
<main class="container mx-auto py-4 px-8">
<%= yield %>
</main>
<script src="/main.js"></script>
</body>
</html>
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"private": true,
"scripts": {
"build": "NODE_ENV=production parcel build --out-dir output/ content/index.js content/stylesheet.css",
"server": "NODE_ENV=development parcel watch --out-dir output/ content/index.js content/stylesheet.css"
"build": "NODE_ENV=production parcel build --out-dir output/ content/main.js",
"server": "NODE_ENV=development parcel watch --out-dir output/ content/main.js"
},
"devDependencies": {
"autoprefixer": "^9.7.5",
Expand Down

0 comments on commit 7c00612

Please sign in to comment.