File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 11/// <reference types="node" />
2- import ChainableWebpackConfig from "webpack-chain" ;
2+ const ChainableWebpackConfig = require ( "webpack-chain" ) ;
33
44module . exports = {
55 outputDir : '../wwwroot' ,
Original file line number Diff line number Diff line change 11/// <reference types="node" />
2- import ChainableWebpackConfig from "webpack-chain" ;
2+ const ChainableWebpackConfig = require ( "webpack-chain" ) ;
33
44module . exports = {
55 outputDir : '../wwwroot' ,
Original file line number Diff line number Diff line change 1+ /// <reference types="node" />
2+ const ChainableWebpackConfig = require ( "webpack-chain" ) ;
3+
4+ module . exports = {
5+ outputDir : '../wwwroot' ,
6+ // Include Vue runtime + compiler since we're using Vue directly within Razor
7+ runtimeCompiler : true ,
8+
9+ /** @type {(config:ChainableWebpackConfig) => void } */
10+ chainWebpack : config => {
11+ config . entryPoints . delete ( 'app' ) ;
12+ config . entry ( 'main' ) . add ( './src/main.ts' ) ;
13+ config . output . when ( process . env . NODE_ENV === 'production' ,
14+ config => config . filename ( '[name].build.min.js' ) ,
15+ config => config . filename ( '[name].build.js' )
16+ ) ;
17+ }
18+ } ;
You can’t perform that action at this time.
0 commit comments