A Chrome extension that hides all YouTube UI except for your video
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

webpack.config.js 719B

1234567891011121314151617181920212223242526272829303132
  1. const path = require('path');
  2. const MiniCssExtractPlugin = require('mini-css-extract-plugin');
  3. module.exports = {
  4. entry: "./src/index.js",
  5. output: {
  6. path: path.resolve(__dirname, "ext"),
  7. filename: "index.js",
  8. },
  9. mode: "production",
  10. module: {
  11. rules: [
  12. {
  13. test: /\.css$/,
  14. use: [
  15. {
  16. loader: MiniCssExtractPlugin.loader,
  17. options: {
  18. publicPath: (resourcePath, context) => {
  19. return path.relative(path.dirname(resourcePath), context) + '/';
  20. },
  21. },
  22. },
  23. 'css-loader',
  24. ],
  25. },
  26. ]
  27. },
  28. plugins: [
  29. new MiniCssExtractPlugin({ filename: 'style.css' }),
  30. ],
  31. };