Skip to content

Commit 832e7d1

Browse files
committed
build: add parcel
1 parent 111113e commit 832e7d1

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,6 @@ typings/
7171

7272
# Serverless directories
7373
.serverless
74+
75+
# Parcel build output
76+
dist

.postcssrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"plugins": {
3+
"autoprefixer": {
4+
"browsers": "last 2 versions, > 1%"
5+
}
6+
}
7+
}

package.json

+10-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
"src"
1313
],
1414
"scripts": {
15-
"lint": "eslint src/**/*.js",
16-
"start": "node src/index.js"
15+
"build": "parcel build statik/index.html",
16+
"lint": "eslint statik/**/*.js",
17+
"start": "parcel statik/index.html -p 8080 --open"
1718
},
1819
"repository": {
1920
"type": "git",
@@ -22,11 +23,17 @@
2223
"bugs": {
2324
"url": "https://github.com/statikstack/html-css-javascript-parcel/issues"
2425
},
25-
"dependencies": {},
26+
"dependencies": {
27+
"normalize.css": "^8.0.0"
28+
},
2629
"devDependencies": {
30+
"autoprefixer": "9.0.0",
2731
"eslint": "5.1.0",
2832
"eslint-config-prettier": "2.9.0",
2933
"eslint-plugin-prettier": "2.6.2",
34+
"parcel-bundler": "1.9.7",
35+
"parcel-plugin-clean-dist": "0.0.6",
36+
"parcel-plugin-imagemin": "1.1.2",
3037
"prettier": "1.13.7"
3138
},
3239
"license": "MIT"

0 commit comments

Comments
 (0)