Skip to content

Commit

Permalink
adding fast async
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangoMan committed Aug 30, 2018
1 parent e7b8433 commit 5c23eae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -24,6 +24,7 @@
"if-env": "^1.0.0",
"jest": "^21.2.1",
"preact-cli": "^2.1.0",
"preact-cli-plugin-fast-async": "^1.0.1",
"preact-render-spy": "^1.2.1",
"workbox-webpack-plugin": "^3.4.1"
},
Expand Down
5 changes: 3 additions & 2 deletions preact.config.js
@@ -1,4 +1,5 @@
const WorkboxPlugin = require('workbox-webpack-plugin');
import WorkboxPlugin from 'workbox-webpack-plugin';
import asyncPlugin from 'preact-cli-plugin-fast-async';

export default config => {
config.plugins.push(
Expand All @@ -8,6 +9,6 @@ export default config => {
include: [/\.html$/, /\.js$/, /\.svg$/, /\.css$/, /\.png$/, /\.ico$/]
})
);

asyncPlugin(config);
return config;
};

0 comments on commit 5c23eae

Please sign in to comment.