{"action":"closed","issue":{"url":"https://api.github.com/repos/egoist/vbuild/issues/6","repository_url":"https://api.github.com/repos/egoist/vbuild","labels_url":"https://api.github.com/repos/egoist/vbuild/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/egoist/vbuild/issues/6/comments","events_url":"https://api.github.com/repos/egoist/vbuild/issues/6/events","html_url":"https://github.com/egoist/vbuild/issues/6","id":157408499,"number":6,"title":"Can't use less","user":{"login":"YerkoPalma","id":5105812,"avatar_url":"https://avatars.githubusercontent.com/u/5105812?v=3","gravatar_id":"","url":"https://api.github.com/users/YerkoPalma","html_url":"https://github.com/YerkoPalma","followers_url":"https://api.github.com/users/YerkoPalma/followers","following_url":"https://api.github.com/users/YerkoPalma/following{/other_user}","gists_url":"https://api.github.com/users/YerkoPalma/gists{/gist_id}","starred_url":"https://api.github.com/users/YerkoPalma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YerkoPalma/subscriptions","organizations_url":"https://api.github.com/users/YerkoPalma/orgs","repos_url":"https://api.github.com/users/YerkoPalma/repos","events_url":"https://api.github.com/users/YerkoPalma/events{/privacy}","received_events_url":"https://api.github.com/users/YerkoPalma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-29T22:00:58Z","updated_at":"2016-05-31T12:24:55Z","closed_at":"2016-05-31T12:24:55Z","body":"I'm trying to use vbuild and I have my stylesheets with less, but I'm getting this error\r\n\r\n![screenshot from 2016-05-30 17 50 52](https://cloud.githubusercontent.com/assets/5105812/15636252/1ef06496-25cf-11e6-8404-c38fedf56616.png)\r\n\r\nAs you can see, I'm trying to import normalize. I've use Vue with less before with browserify and it works perfect, but I've never used webpack before. I'm including my styles in my main vue file like this\r\n\r\n```vue\r\n<style lang=\"less\" src=\"./style/main.less\"></style>\r\n```\r\nI try to add some webpack loaders for less and for sourcemap but the error is still there. Is there something I'm missing? Here is my `vbuils.js` file if it helps\r\n\r\n```js\r\nimport path from 'path'\r\nimport ExtractTextPlugin from 'extract-text-webpack-plugin'\r\n\r\nexport default {\r\n  // ...\r\n  postcss: ['postcss-import'],\r\n  webpack(config, options) {\r\n    config.resolve.devtool = 'source-map'\r\n    addLess(config)\r\n    config.resolve.plugins = [ new ExtractTextPlugin('styles.css') ]\r\n    setAlias(config)\r\n  }\r\n}\r\n\r\nfunction cwd(...args) {\r\n  return path.join(process.cwd(), ...args)\r\n}\r\n\r\nfunction setAlias(config) {\r\n  config.resolve.alias = {\r\n    components: cwd('src/components'),\r\n    utils: cwd('src/utils'),\r\n    helpers: cwd('src/helpers')\r\n  }\r\n}\r\n\r\nfunction addLess(config) {\r\n  config.resolve.module = {\r\n    loaders: [\r\n      {\r\n        test: /\\.less$/,\r\n        loader: ExtractTextPlugin.extract(\r\n          // activate source maps via loader query\r\n          'css?sourceMap!' +\r\n          'less?sourceMap'\r\n        )\r\n      }\r\n    ]\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"egoist"}}