Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

name param bug ? #9

Closed
LeezQ opened this issue Mar 9, 2015 · 1 comment
Closed

name param bug ? #9

LeezQ opened this issue Mar 9, 2015 · 1 comment

Comments

@LeezQ
Copy link

LeezQ commented Mar 9, 2015

I write code like this:

var B = require("react-proxy?name=b.js!./b");
var C = require("react-proxy?name=c.js!./c");

and what I want is :

output/
       - b.js
       - c.js

but it will output like this:

output/
       - 1.1.bundle.js
       - 2.2.bundle.js

is this a bug ? or how can I get the name what I define in ?name param ? @sokra

@LeezQ
Copy link
Author

LeezQ commented Mar 9, 2015

oh, I find how to solve the problem,
first add chunkFilename: "[name].js" in config file,

and then , modify the code :

var B = require("react-proxy-loader?name=b.js!./b");
var C = require("react-proxy-loader?name=c.js!./c");

so I thins the resolveLoader config in your config file is not work;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants