A
A
Alexander2015-02-23 12:24:45
JavaScript
Alexander, 2015-02-23 12:24:45

How to teach webpack to build into a separate file without dependencies?

{ //....
  entry: {
        index: './bootstrap',
        vendor: ["mithril"],
        apps_api: './AppsAPI/AppsAPILibrary'
    },
    output: {
        path: path.join(__dirname, 'public'),
        filename: '[name].js'
    }
// ...
}

There is a project and an application system for this project (the project is built by webpack), applications are loaded in a frame, you need to compile apps_api into separate files so that it works without loading other libraries (Now there is an error about the absence of the webpackJSONP function). How to solve such a problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question