Successfully added
ASP.NET Core
by Patrik
Setting Up Webpack
Create the webpack.config.js file in the root folder with this code:
const path = require(‘path’); module.exports = { mode: ‘development’, entry: ‘./wwwroot/source/app.js’, output: { path: path.resolve(__dirname, ‘wwwroot/dist’), filename: ‘bundle.js’ } };
As you can see above, we are giving Webpack the entry point, which is our app.js file. As well as telling it where to output the bundled file.
Referenced in:
Comments