Skip to content

Commit

Permalink
Ещё один вариант конфига.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyAkkuratov committed May 30, 2024
1 parent 74a2be1 commit ff818d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ module.exports = {
filename: "[name].js",
chunkFilename: "[name].chunk.js",
path: path.resolve(__dirname, "dist"),
publicPath: `${PREFIX}/`,
publicPath: isProduction ? "/OTUS_homework_lesson07/" : "/", // Changed here
},
plugins: [
new HtmlWebpackPlugin({
template: "./src/template.html",
favicon: "./src/assets/favicon.png",
filename: "./index.html",
filename: "index.html", // Changed here
}),
new HtmlWebpackPlugin({
template: "./src/template.html",
Expand Down

0 comments on commit ff818d0

Please sign in to comment.