Commit fa5e8717 authored by Murray J Brown's avatar Murray J Brown
Browse files

remove experimental next-compose-plugins package; refactor client container(s)

parent a6348a61
const path = require('path');
const withPlugins = require('next-compose-plugins');
const withSass = require('@zeit/next-sass');
// for those who using CDN
const { ASSET_HOST } = process.env;
const assetPrefix = ASSET_HOST || '';
module.exports = withPlugins([[withSass]], {
module.exports = withSass({
// eslint-disable-next-line no-unused-vars
webpack: (config, { dev }) => {
config.output.publicPath = `${assetPrefix}${config.output.publicPath}`;
......
......@@ -13405,12 +13405,6 @@
}
}
},
"next-compose-plugins": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/next-compose-plugins/-/next-compose-plugins-2.2.0.tgz",
"integrity": "sha512-ChUlpT9tWfJ7YxqGw/WQ2T1gf8EeX93n1XqeQw0lkvGa7seszahvF4eOZUJoq7Hetsbzg4UHVnPoCXfXTyQR3g==",
"dev": true
},
"next-router": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/next-router/-/next-router-1.3.6.tgz",
......
......@@ -16,5 +16,3 @@ export default function Home() {
</div>
);
}
// <style jsx>{styles}</style>
// @flow
import React, { useEffect } from 'react';
import dynamic from 'next/dynamic';
import Counter from '@client/components/Counter';
import CounterContainer from '@client/containers/CounterContainer';
const Counter = dynamic(import('../client/components/Counter'), { ssr: false });
const CounterContainer = dynamic(import('../client/components/CounterContainer'), { ssr: false });
export default function Home() {
useEffect(() => {
......@@ -36,5 +35,3 @@ export default function Home() {
</div>
);
}
// <CounterShared title='Shared' />
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment