diff --git a/config/rollup.config.dev.mjs b/config/rollup.config.dev.mjs index 15b8514..c9857f5 100644 --- a/config/rollup.config.dev.mjs +++ b/config/rollup.config.dev.mjs @@ -2,6 +2,7 @@ import resolve from '@rollup/plugin-node-resolve'; import commonjs from '@rollup/plugin-commonjs'; import babel from '@rollup/plugin-babel'; import replace from '@rollup/plugin-replace'; +import serve from 'rollup-plugin-serve'; import externals from './externals.mjs'; const paths = { @@ -10,7 +11,7 @@ const paths = { outputFile: 'docs/static/lib/index.js', }, playground: { - input: 'playground/src/index.jsx', + input: 'playground/src/index.tsx', outputFile: 'docs/static/index.js', }, }; @@ -62,5 +63,9 @@ export default [{ preventAssignment: true, 'process.env.NODE_ENV': JSON.stringify('development'), }), + serve({ + contentBase: 'docs', + port: 8001, + }), ], }]; diff --git a/config/rollup.config.docs.mjs b/config/rollup.config.docs.mjs index 61c3045..2cb8722 100644 --- a/config/rollup.config.docs.mjs +++ b/config/rollup.config.docs.mjs @@ -11,7 +11,7 @@ const paths = { outputFile: 'docs/static/lib/index.js', }, playground: { - input: 'playground/src/index.jsx', + input: 'playground/src/index.tsx', outputFile: 'docs/static/index.js', }, }; diff --git a/docs/index.html b/docs/index.html index e5d8ebb..3deb24a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -7,6 +7,77 @@ react-double-marquee +