You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

webpack.config.js 384B

1234567891011121314151617181920
  1. const path = require("path");
  2. module.exports = {
  3. mode: "production",
  4. entry: "./index.js",
  5. output: {
  6. filename: "main.js",
  7. path: path.resolve(__dirname,"./dist")
  8. },
  9. module:
  10. {
  11. rules:
  12. [
  13. {
  14. test: /\.css$/ ,
  15. use:
  16. [ 'style-loader','css-loader']
  17. }
  18. ]
  19. }
  20. }