Skip to content

Commit 359f88a

Browse files
author
Adam Argyle
committed
initial lib build
1 parent 45e757b commit 359f88a

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Running `npm start` runs Browsersync, Rollup and Postcss concurrently, watching
3030
Running `npm run build` compiles and minifies your code in `app` and outputs the optimised result to a folder called `dist` that's ready for static hosting.
3131

3232
Running `npm run production` will build your project and start a server at `dist`.
33+
34+
`npm run lib` to build the library files

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"build:pre:css": "postcss app/css/index.css -o dist/bundle.css --env production",
1818
"build:post:copy": "cp app/index.html dist/index.html",
1919
"build": "rm -rf dist && concurrently npm:build:pre:* && concurrently npm:build:post:*",
20+
"lib": "postcss src/index.css -o transition.min.css --env production",
2021
"start": "concurrently --kill-others npm:dev:*",
2122
"production": "npm run build && npm run prod:server"
2223
},

transition.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

transition.postcss.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const postcssImport = require('postcss-import')
2+
const cssnano = require('cssnano')
3+
4+
module.exports = {
5+
plugins: [
6+
postcssImport({
7+
path: 'app/css',
8+
}),
9+
cssnano({
10+
preset: 'default'
11+
}),
12+
]
13+
}

0 commit comments

Comments
 (0)