@cara/porter
Advanced tools
Comparing version 3.0.6 to 3.1.0
{ | ||
"name": "@cara/porter", | ||
"description": "A koa and express middleware for browser side javascript module authoring.", | ||
"version": "3.0.6", | ||
"version": "3.1.0", | ||
"main": "src/porter.js", | ||
@@ -14,3 +14,3 @@ "repository": { | ||
"dependencies": { | ||
"autoprefixer": "^9.3.1", | ||
"autoprefixer": "^9.6.0", | ||
"debug": "^3.1.0", | ||
@@ -17,0 +17,0 @@ "glob": "^7.0.5", |
@@ -38,6 +38,6 @@ # Porter | ||
With the default setup, browser modules at `./components` folder is now accessible with `/path/to/file.js` or `/${pkg.name}/${pkg.version}/path/to/file.js`. Take [porter-demo](https://github.com/erzu/porter/packages/porter-demo) for example, the file structure shall resemble that of below: | ||
With the default setup, browser modules at `./components` folder is now accessible with `/path/to/file.js` or `/${pkg.name}/${pkg.version}/path/to/file.js`. Take [demo-cli](https://github.com/erzu/porter/packages/demo-cli) for example, the file structure shall resemble that of below: | ||
```bash | ||
➜ porter-demo git:(master) tree -L 2 | ||
➜ demo-cli git:(master) tree -L 2 | ||
. | ||
@@ -204,3 +204,3 @@ ├── components # browser modules | ||
{ | ||
"name": "@cara/porter-demo", | ||
"name": "@cara/demo-cli", | ||
"version": "2.0.0" | ||
@@ -228,3 +228,3 @@ } | ||
├── @cara | ||
│ └── porter-app | ||
│ └── demo-app | ||
│ └── 2.0.0-3 | ||
@@ -231,0 +231,0 @@ | ├── app.js |
@@ -60,3 +60,3 @@ 'use strict' | ||
this.source = { serve: false, root: '/', ...opts.source } | ||
this.cssLoader = postcss().use( | ||
this.cssLoader = postcss([ | ||
atImport({ | ||
@@ -66,4 +66,7 @@ path: paths, | ||
}) | ||
]) | ||
this.cssTranspiler = postcss( | ||
(opts.postcssPlugins || []).concat(autoprefixer(opts.autoprefixer)) | ||
) | ||
this.cssTranspiler = postcss().use(autoprefixer(opts.autoprefixer)) | ||
this.ready = this.prepare(opts) | ||
@@ -70,0 +73,0 @@ } |
85292
2153
13
Updatedautoprefixer@^9.6.0