Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

34 lines
833B

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