Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

392
Views
Webpack Serve no funciona, pero Webpack sí

Reporte de error

Hola a todos, Webpack Serve no funciona después de cambiar a Linux mint. Reinstalé los paquetes npm y también instalé webpack directamente sobre mi consola. Mi comando de servicio es "servir": "servicio de paquete web" La construcción del paquete web normalmente funciona.

Esta es la configuración de mi paquete web:

 const path = require("path"); const Dotenv = require("dotenv-webpack"); require("dotenv").config(); const WorkboxWebpackPlugin = require("workbox-webpack-plugin"); const isProduction = process.env.NODE_ENV == "production"; const config = { watch: true, entry: "./src/frontend/index.ts", output: { path: path.resolve(__dirname, "dist"), filename: "index.js", }, devServer: { // hot: "only", hot: "only", open: true, static: { directory: path.join(__dirname, "public"), }, compress: true, port: 9000, host: "localhost", }, plugins: [ new Dotenv({ path: `./.env`, }), ], module: { rules: [ { test: /\.(ts|tsx)$/i, loader: "ts-loader", exclude: ["/node_modules/"], }, { test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i, type: "asset", }, // Add your rules for custom modules here // Learn more about loaders from https://webpack.js.org/loaders/ ], }, resolve: { extensions: [".tsx", ".ts", ".js"], }, }; module.exports = () => { if (isProduction) { config.mode = "production"; config.plugins.push(new WorkboxWebpackPlugin.GenerateSW()); } else { config.mode = "development"; } return config; };
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!