vue.config.js 810 B

1234567891011121314151617181920
  1. const HtmlWebpackPlugin = require('html-webpack-plugin')
  2. const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
  3. module.exports = {
  4. css: {
  5. extract: false,
  6. },
  7. configureWebpack: {
  8. optimization: {
  9. splitChunks: false // makes there only be 1 js file - leftover from earlier attempts but doesn't hurt
  10. },
  11. plugins: [
  12. new HtmlWebpackPlugin({
  13. filename: 'output.html', // the output file name that will be created
  14. template: 'src/output-template.html', // this is important - a template file to use for insertion
  15. inlineSource: '.(js|css)$' // embed all javascript and css inline
  16. }),
  17. new HtmlWebpackInlineSourcePlugin(HtmlWebpackPlugin)
  18. ]
  19. }
  20. }