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.

42 line
1.0KB

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