Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component({
- components: {
- MenuComponent: require('../navmenu/navmenu.vue.html'),
- AboutComponent: require('../about/about.vue')
- }
- })
- ERROR in ./ClientApp/components/about/about.vue
- Module parse failed: C:playgroundvue-journeyClientAppcomponentsaboutabout.vue Unexpected token (1:0)
- You may need an appropriate loader to handle this file type.
- | <template>
- | <div class="about">
- | <h1>This is an about page</h1>
- @ ./~/awesome-typescript-loader/dist/entry.js?silent=true!./ClientApp/components/app/app.ts 30:28-57
- @ ./ClientApp/components/app/app.vue.html
- @ ./ClientApp/boot.ts
- @ multi event-source-polyfill webpack-hot-middleware/client?path=__webpack_hmr&dynamicPublicPath=true ./ClientApp/boot.ts
- const path = require('path');
- return [{
- stats: { modules: false },
- context: __dirname,
- resolve: { extensions: [ '.js', '.ts' ] },
- entry: { 'main': './ClientApp/boot.ts' },
- module: {
- rules: [
- { test: /.vue.html$/, include: /ClientApp/, loader: 'vue-loader', options: { loaders: { js: 'awesome-typescript-loader?silent=true' } } },
- { test: /.ts$/, include: /ClientApp/, use: 'awesome-typescript-loader?silent=true' },
- { test: /.css$/, use: isDevBuild ? [ 'style-loader', 'css-loader' ] : ExtractTextPlugin.extract({ use: 'css-loader?minimize' }) },
- { test: /.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }
- ]
- },
- output: {
- path: path.join(__dirname, bundleOutputDir),
- filename: '[name].js',
- publicPath: 'dist/'
- },
- plugins: [
- new CheckerPlugin(),
- new webpack.DefinePlugin({
- 'process.env': {
- NODE_ENV: JSON.stringify(isDevBuild ? 'development' : 'production')
- }
- }),
- new webpack.DllReferencePlugin({
- context: __dirname,
- manifest: require('./wwwroot/dist/vendor-manifest.json')
- })
- ].concat(isDevBuild ? [
- // Plugins that apply in development builds only
- new webpack.SourceMapDevToolPlugin({
- filename: '[file].map', // Remove this line if you prefer inline source maps
- moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
- })
- ] : [
- // Plugins that apply in production builds only
- new webpack.optimize.UglifyJsPlugin(),
- new ExtractTextPlugin('site.css')
- ])
- }];
- };
Add Comment
Please, Sign In to add comment