Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

44 lines
1.2KB

  1. const path = require('path');
  2. const webpack = require('webpack');
  3. const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
  4. const ExtractTextPlugin = require("extract-text-webpack-plugin");
  5. const { VueLoaderPlugin } = require('vue-loader');
  6. const HtmlWebpackPlugin = require('html-webpack-plugin');
  7. module.exports = {
  8. mode: 'production',
  9. entry: './src/index.js',
  10. output: {
  11. filename: 'main.js',
  12. path: path.resolve(__dirname, 'dist')
  13. },
  14. module: {
  15. rules: [
  16. {
  17. test: /\.scss$/,
  18. use: ExtractTextPlugin.extract({
  19. fallback: 'style-loader',
  20. use: [
  21. 'css-loader',
  22. 'sass-loader'
  23. ]
  24. })
  25. },
  26. {
  27. test: /\.css$/,
  28. use: ['vue-style-loader', 'style-loader', 'css-loader']
  29. },
  30. {
  31. test: /\.vue$/,
  32. use: 'vue-loader'
  33. }
  34. ]
  35. },
  36. plugins: [
  37. new MonacoWebpackPlugin(),
  38. new ExtractTextPlugin('css/mystyles.css'),
  39. new VueLoaderPlugin()
  40. ]
  41. };