{"action":"created","issue":{"url":"https://api.github.com/repos/symfony/webpack-encore/issues/200","repository_url":"https://api.github.com/repos/symfony/webpack-encore","labels_url":"https://api.github.com/repos/symfony/webpack-encore/issues/200/labels{/name}","comments_url":"https://api.github.com/repos/symfony/webpack-encore/issues/200/comments","events_url":"https://api.github.com/repos/symfony/webpack-encore/issues/200/events","html_url":"https://github.com/symfony/webpack-encore/issues/200","id":273243494,"node_id":"MDU6SXNzdWUyNzMyNDM0OTQ=","number":200,"title":"How to add alias and externals in encore","user":{"login":"tristanbes","id":346010,"node_id":"MDQ6VXNlcjM0NjAxMA==","avatar_url":"https://avatars2.githubusercontent.com/u/346010?v=4","gravatar_id":"","url":"https://api.github.com/users/tristanbes","html_url":"https://github.com/tristanbes","followers_url":"https://api.github.com/users/tristanbes/followers","following_url":"https://api.github.com/users/tristanbes/following{/other_user}","gists_url":"https://api.github.com/users/tristanbes/gists{/gist_id}","starred_url":"https://api.github.com/users/tristanbes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tristanbes/subscriptions","organizations_url":"https://api.github.com/users/tristanbes/orgs","repos_url":"https://api.github.com/users/tristanbes/repos","events_url":"https://api.github.com/users/tristanbes/events{/privacy}","received_events_url":"https://api.github.com/users/tristanbes/received_events","type":"User","site_admin":false},"labels":[{"id":638582634,"node_id":"MDU6TGFiZWw2Mzg1ODI2MzQ=","url":"https://api.github.com/repos/symfony/webpack-encore/labels/HasPR","name":"HasPR","color":"fbca04","default":false},{"id":625074645,"node_id":"MDU6TGFiZWw2MjUwNzQ2NDU=","url":"https://api.github.com/repos/symfony/webpack-encore/labels/feature","name":"feature","color":"84b6eb","default":false},{"id":625074648,"node_id":"MDU6TGFiZWw2MjUwNzQ2NDg=","url":"https://api.github.com/repos/symfony/webpack-encore/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-11-12T16:31:15Z","updated_at":"2018-09-27T14:32:13Z","closed_at":"2018-02-11T00:46:34Z","author_association":"NONE","body":"Hello,\r\n\r\nSince webpack is obscure to me, I'm giving `encore` a chance but i'm strugling with how to add an *alias* and *externals* entries\r\n\r\n```js\r\n    resolve: {\r\n      extensions: ['.js', '.json', '.vue'],\r\n      alias: {\r\n        Translator: 'node_modules/bazinga-translator/js',\r\n      },\r\n    },\r\n    externals: {\r\n      vue: 'Vue',\r\n      vuex: 'Vuex',\r\n      google: 'google',\r\n      leaflet: 'L',\r\n      markerclustererplus: 'MarkerClusterer',\r\n      routing: 'Routing',\r\n      app: 'app',\r\n      translator: 'Translator',\r\n    },\r\n```\r\n\r\nI tried `ctrl+f` in `encore` API but didn't found it :(\r\n"},"comment":{"url":"https://api.github.com/repos/symfony/webpack-encore/issues/comments/425115317","html_url":"https://github.com/symfony/webpack-encore/issues/200#issuecomment-425115317","issue_url":"https://api.github.com/repos/symfony/webpack-encore/issues/200","id":425115317,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTExNTMxNw==","user":{"login":"stof","id":439401,"node_id":"MDQ6VXNlcjQzOTQwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/439401?v=4","gravatar_id":"","url":"https://api.github.com/users/stof","html_url":"https://github.com/stof","followers_url":"https://api.github.com/users/stof/followers","following_url":"https://api.github.com/users/stof/following{/other_user}","gists_url":"https://api.github.com/users/stof/gists{/gist_id}","starred_url":"https://api.github.com/users/stof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stof/subscriptions","organizations_url":"https://api.github.com/users/stof/orgs","repos_url":"https://api.github.com/users/stof/repos","events_url":"https://api.github.com/users/stof/events{/privacy}","received_events_url":"https://api.github.com/users/stof/received_events","type":"User","site_admin":false},"created_at":"2018-09-27T14:32:13Z","updated_at":"2018-09-27T14:32:13Z","author_association":"MEMBER","body":"`symfony/webpack-encore-pack` is just a way for the Flex recipe to initialize the package.json file to reference encore. But webpack-encore is not a PHP package at all, but a node.js one. So installing it is done using the node.js tooling (npm or yarn)."}}
{"actor":{"display_login":"stof"}}