Guest User

Untitled

a guest
Jan 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. @Component({
  2. components: {
  3. MenuComponent: require('../navmenu/navmenu.vue.html'),
  4. AboutComponent: require('../about/about.vue')
  5. }
  6. })
  7.  
  8. ERROR in ./ClientApp/components/about/about.vue
  9. Module parse failed: C:playgroundvue-journeyClientAppcomponentsaboutabout.vue Unexpected token (1:0)
  10. You may need an appropriate loader to handle this file type.
  11. | <template>
  12. | <div class="about">
  13. | <h1>This is an about page</h1>
  14. @ ./~/awesome-typescript-loader/dist/entry.js?silent=true!./ClientApp/components/app/app.ts 30:28-57
  15. @ ./ClientApp/components/app/app.vue.html
  16. @ ./ClientApp/boot.ts
  17. @ multi event-source-polyfill webpack-hot-middleware/client?path=__webpack_hmr&dynamicPublicPath=true ./ClientApp/boot.ts
  18.  
  19. const path = require('path');
  20.  
  21. return [{
  22. stats: { modules: false },
  23. context: __dirname,
  24. resolve: { extensions: [ '.js', '.ts' ] },
  25. entry: { 'main': './ClientApp/boot.ts' },
  26. module: {
  27. rules: [
  28. { test: /.vue.html$/, include: /ClientApp/, loader: 'vue-loader', options: { loaders: { js: 'awesome-typescript-loader?silent=true' } } },
  29. { test: /.ts$/, include: /ClientApp/, use: 'awesome-typescript-loader?silent=true' },
  30. { test: /.css$/, use: isDevBuild ? [ 'style-loader', 'css-loader' ] : ExtractTextPlugin.extract({ use: 'css-loader?minimize' }) },
  31. { test: /.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }
  32. ]
  33. },
  34. output: {
  35. path: path.join(__dirname, bundleOutputDir),
  36. filename: '[name].js',
  37. publicPath: 'dist/'
  38. },
  39. plugins: [
  40. new CheckerPlugin(),
  41. new webpack.DefinePlugin({
  42. 'process.env': {
  43. NODE_ENV: JSON.stringify(isDevBuild ? 'development' : 'production')
  44. }
  45. }),
  46. new webpack.DllReferencePlugin({
  47. context: __dirname,
  48. manifest: require('./wwwroot/dist/vendor-manifest.json')
  49. })
  50. ].concat(isDevBuild ? [
  51. // Plugins that apply in development builds only
  52. new webpack.SourceMapDevToolPlugin({
  53. filename: '[file].map', // Remove this line if you prefer inline source maps
  54. moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
  55. })
  56. ] : [
  57. // Plugins that apply in production builds only
  58. new webpack.optimize.UglifyJsPlugin(),
  59. new ExtractTextPlugin('site.css')
  60. ])
  61. }];
  62. };
Add Comment
Please, Sign In to add comment