Fix CSS entry making JS module empty
This commit is contained in:
parent
ba5f703d03
commit
197443f1e4
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user