diff --git a/.postcssrc.json b/.postcssrc.json new file mode 100644 index 0000000..ebe6b3f --- /dev/null +++ b/.postcssrc.json @@ -0,0 +1,10 @@ +{ + "plugins": { + "postcss-css-variables": {}, + "postcss-calc": {}, + "autoprefixer": {}, + "cssnano": { + "preset": "default" + } + } +} diff --git a/package.json b/package.json index ed0dd6e..12dc5aa 100644 --- a/package.json +++ b/package.json @@ -21,12 +21,11 @@ "email": "nick@karamoff.dev", "url": "https://karamoff.dev" }, - "main": "./dist/shareon.cjs", - "module": "./dist/shareon.mjs", - "unpkg": "./dist/shareon.min.js", + "type": "module", + "main": "./shareon.legacy.js", + "module": "./shareon.js", "exports": { - "require": "./dist/shareon.cjs", - "import": "./dist/shareon.mjs" + "import": "./shareon.js" }, "files": [ "shareon.css", diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index 8004595..0000000 --- a/postcss.config.js +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = { - plugins: { - 'postcss-css-variables': {}, - 'postcss-calc': {}, - autoprefixer: {}, - cssnano: { - preset: 'default', - }, - }, -};