dora-plugin-webpack's People
Forkers
silentcloud carlos121493 hanshenu helloyou2012 tinys zhulux liangklfang paranoidjk zyy7259 wangbiaoxuandora-plugin-webpack's Issues
up dep for atool-build 1.x
dora 添加 DefinePlugin
自己添加,dora 启动不了,也没有报错信息
if (process.env.NODE_ENV !== 'production') {
webpackConfig.plugins.push(
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
}),
);
}
webpackConfig.module.loaders 加载font-woff怎么使用??
webpackConfig.module.loaders.forEach(function (loader, index) {
if (typeof loader.test === 'function' && loader.test.toString().indexOf('.less$') > -1) {
loader.test = /.dont.exist.file/;
}
if (loader.test.toString() === '/.module.less$/') {
loader.test = /.less$/;
}
});
以前都是这样加载的
loaders: [
{test: /.less$/, loader: "style!css!less", exclude: /node_modules|bower_components/},
{test: /.woff(2)$/, loader: "url?limit=10000&minetype=application/font-woff"}
]
自动安装 npm 依赖,并保存到 dependencies
dora 下不应该使用 ExtractTextPlugin
ExtractTextPlugin 会导致 css hot-loading 失效。
feat: package.json 和 webpack.config.js 修改时不需要重启进程
support array config
Right now this plugin only support one config. Can you update it to support array config?
source-map无法断点debug
默认配置webpackConfig.devtool = '#cheap-module-source-map';
在Chrome中生成的sourcemap无法断点debug。而设置为source-map则是OK的。
Chrome版本是 53.0.2785.143 (64-bit)
config 路径问题
https://github.com/dora-js/dora-plugin-webpack/blob/master/src/index.js#L17
如果 config 传入进来的是绝对路径那整个插件就有问题了
先检测能不能取到 atool-build 并给提示,现在直接报错不好理解
module.js:338
throw err;
^
Error: Cannot find module 'atool-build/lib/mergeCustomConfig'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/private/tmp/mockjs/node_modules/dora-plugin-atool-build/lib/index.js:7:26)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
idea: 替换 import react 为构建之后的 react.js 来提升初始构建时间
配置 externals 失效
配置 externals 失效
请考虑升级npm-install-webpack-plugin
现在的话webpack配置resolve.alias和resolve.root都没有用,会去下载远程包。
后面的版本修复了这个问题。
请看这个issues:
webpack-contrib/install-webpack-plugin#31
pre-built javascript error
Below snippet not working for pre-build:
webpackConfig.module.loaders.push({
noParse: ['/node_modules/xlsx/jszip.js'],
});
Error :
Critical dependencies:
1650:473-480 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ./node_modules/xlsx/jszip.js 1650:473-480
自动依赖加个参数,允许关闭
执行 dva new myApp 时报错
@sorrycc 帮忙看下 早上还可以创建项目,这会不行 多谢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.