1234567891011121314151617181920212223242526272829303132333435363738 |
- const Config = require('webpack-chain');
- const config = new Config();
- module.exports = {
- baseUrl: '/',
- outputDir: './wwwroot',
- lintOnSave: true,
- runtimeCompiler: true,
- devServer: {
- open: process.platform === 'darwin',
- host: '0.0.0.0',
- port: 8080,
- https: false,
- hotOnly: false,
- proxy: null, // string | Object
- before: app => { }
- },
- pages: {
- index: {
- entry: './ContestApp/src/main.js'
- }
- },
- chainWebpack: config => {
- config
- // Interact with entry points
- .entry('index')
- .add('./ContestApp/src/main.js')
- .end()
- // Modify output settings
- .output
- .filename('main.js');
-
- //pluginOptions: {
- // "dynamic-import-webpack"
- //}
- //config.plugin('dynamic-import-webpack');
-
- }
- }
|