From c00d92e4f3d34e9adc840c440798719007f9776e Mon Sep 17 00:00:00 2001 From: eunjae-lee Date: Thu, 1 Oct 2020 11:37:24 +0200 Subject: [PATCH] export style --- examples/js/app.ts | 2 +- packages/autocomplete-plugin-recent-searches/package.json | 3 ++- packages/autocomplete-plugin-recent-searches/style/index.js | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 packages/autocomplete-plugin-recent-searches/style/index.js diff --git a/examples/js/app.ts b/examples/js/app.ts index f2e55c9eb..9b48408a3 100644 --- a/examples/js/app.ts +++ b/examples/js/app.ts @@ -7,7 +7,7 @@ import { reverseHighlightItem, } from '@algolia/autocomplete-js'; import { createRecentSearchesPlugin } from '@algolia/autocomplete-plugin-recent-searches'; -import '@algolia/autocomplete-plugin-recent-searches/dist/esm/style.css'; +import '@algolia/autocomplete-plugin-recent-searches/style'; const searchClient = algoliasearch( 'latency', diff --git a/packages/autocomplete-plugin-recent-searches/package.json b/packages/autocomplete-plugin-recent-searches/package.json index 1f6efd32c..bc3d271d7 100644 --- a/packages/autocomplete-plugin-recent-searches/package.json +++ b/packages/autocomplete-plugin-recent-searches/package.json @@ -31,7 +31,8 @@ }, "sideEffects": false, "files": [ - "dist/" + "dist/", + "style/" ], "dependencies": { "@algolia/autocomplete-core": "^1.0.0-alpha.31" diff --git a/packages/autocomplete-plugin-recent-searches/style/index.js b/packages/autocomplete-plugin-recent-searches/style/index.js new file mode 100644 index 000000000..722a95168 --- /dev/null +++ b/packages/autocomplete-plugin-recent-searches/style/index.js @@ -0,0 +1 @@ +export * from '../dist/esm/style.css';