Skip to content
#

webpack-configuration

Here are 162 public repositories matching this topic...

edmorley
edmorley commented Jan 28, 2020

Split out of #225...


I was wondering about drastically simplifying the .merge() section of the docs, so that instead of being a copy-paste of every webpack config option, it only listed the areas where the data structure differed from the real webpack config schema (plus perhaps a few examples from the options that were identical).

ie:

  // Differences from webpack config
jormal
jormal commented Apr 23, 2019

This is a Bug Report

Description

For bug reports:

  • What went wrong?
    When I was using only one package, web3 could be bundled successfully.
    But, I needed to restruct my project to using yarn workspace. So, I only restructed (not code edited) my project and I came across some bundling errors.
(skip warning)

ERROR in D:/Users/jormal/WebstormProjects/TX_COLLECTOR/tx-collector/n
roguexiaohuihui
roguexiaohuihui commented Apr 13, 2020

想新增一个alias,像vue脚手架默认填写的:
resolve: {
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src')
}
},

即将@指向到某一个目录,比如app/web/目录,我在webpack.config.js文件添加了

module.exports = {
egg: true,
devtool: 'eval',
target: 'web',
entry: {
admin: 'app/web/page/admin/index.js'
},
cssExtract: true,
dll: ['vue', 'vue-router', 'vuex',

Awesome CMS Core is an open source CMS built using ASP.Net Core & ReactJS with module seperation concern in mind and provide lastest trend of technology like .Net Core, React, Webpack, SASS, Background Job, Message Queue.

  • Updated Apr 22, 2019
  • C#

Improve this page

Add a description, image, and links to the webpack-configuration topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the webpack-configuration topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.