Skip to content

Commit

Permalink
dev works now
Browse files Browse the repository at this point in the history
  • Loading branch information
longshuicy committed Aug 19, 2024
1 parent 204a14f commit 1153545
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions frontend/src/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
/>
<link href="<%= htmlWebpackPlugin.options.publicPath %>styles/main.css" rel="stylesheet">

<link href="<%= htmlWebpackPlugin.options.publicPath !=='auto' ? htmlWebpackPlugin.options.publicPath + 'styles/main.css' :'styles/main.css' %>" rel="stylesheet">
<title>Clowder v2</title>
</head>
<body>
Expand Down
6 changes: 0 additions & 6 deletions frontend/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ export default {
target: "web",
output: {
path: path.resolve(__dirname, "dist"),
publicPath: process.env.BASE_URL_ROUTE
? `${process.env.BASE_URL_ROUTE}/`
: "/", // Ensure trailing slash
filename: "[name].bundle.js",
chunkFilename: "[name].chunk.bundle.js",
},
Expand Down Expand Up @@ -66,9 +63,6 @@ export default {
collapseWhitespace: true,
},
inject: true,
publicPath: process.env.BASE_URL_ROUTE
? `${process.env.BASE_URL_ROUTE}/`
: "/", // Ensure trailing slash
}),
new webpack.LoaderOptionsPlugin({
debug: true,
Expand Down

0 comments on commit 1153545

Please sign in to comment.