Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting "out" and "dir" options are incompatible message while only "dir" is specified #4

Open
usagene opened this issue Oct 10, 2014 · 0 comments
Assignees
Labels
Milestone

Comments

@usagene
Copy link

usagene commented Oct 10, 2014

Hi,

I am not sure if multiple file optimization is supported. But when I try to optimize multiple files based on a given AMD module with below config, I got this "dir" and "out" incompatible error. As you can see from the config, I did not even specify the out option.

var requirejsConfig = {
baseUrl: './src',
paths: {
"knockout":"../lib/knockoutjs/dist/knockout.debug",
"jquery": "../lib/jquery/dist/jquery",
"bootstrap": "../lib/bootstrap/dist/js/bootstrap",
"jqueryui": "../lib/jqueryui/jquery-ui",
"text": "../lib/requirejs-text/text",
"komapping": "../lib/knockout-mapping/knockout.mapping"
},
shim: {
"bootstrap": ["jquery"]
},
dir: '../dist/knockout.modal.min',
modules: [
{
name: 'ModalBinding',
exclude: [
"jquery",
"knockout",
"jqueryui",
"bootstrap",
"text",
"komapping"
]
}
]
};

gulp.src("src/**/*.js")
    .pipe(rjs(requirejsConfig)); 
@mcharytoniuk mcharytoniuk self-assigned this Oct 11, 2014
@mcharytoniuk mcharytoniuk modified the milestone: 1.2.0 Oct 11, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants