A Chrome extension that hides all YouTube UI except for your video
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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. };