Compare commits

...

1 Commits

Author SHA1 Message Date
Sam Nolan
197443f1e4 Fix CSS entry making JS module empty 2022-06-16 06:04:24 +00:00
2 changed files with 11 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@quri/squiggle-components", "name": "@quri/squiggle-components",
"version": "0.2.20", "version": "0.2.22",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@headlessui/react": "^1.6.4", "@headlessui/react": "^1.6.4",

View File

@ -4,8 +4,10 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = { module.exports = {
mode: "production", mode: "production",
devtool: "source-map", devtool: "source-map",
profile: true, entry: {
entry: ["./src/index.ts", "./src/styles/main.css"], main: ["./src/index.ts"],
style: ["./src/styles/main.css"],
},
module: { module: {
rules: [ rules: [
{ {
@ -20,7 +22,11 @@ module.exports = {
}, },
], ],
}, },
plugins: [new MiniCssExtractPlugin()], plugins: [
new MiniCssExtractPlugin({
filename: "[name].css",
}),
],
resolve: { resolve: {
extensions: [".js", ".tsx", ".ts"], extensions: [".js", ".tsx", ".ts"],
alias: { alias: {
@ -28,7 +34,7 @@ module.exports = {
}, },
}, },
output: { output: {
filename: "bundle.js", filename: "[name].js",
path: path.resolve(__dirname, "dist"), path: path.resolve(__dirname, "dist"),
library: { library: {
name: "squiggle_components", name: "squiggle_components",