Git Product home page Git Product logo

dora-plugin-webpack's People

Contributors

pigcan avatar sorrycc avatar yiminghe avatar zinkey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dora-plugin-webpack's Issues

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"}
]

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)

先检测能不能取到 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)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.