Skip to content

Instantly share code, notes, and snippets.

@lcustodio
Last active July 15, 2016 10:42
Show Gist options
  • Save lcustodio/60c239ad0595569523964ccb9a114cee to your computer and use it in GitHub Desktop.
Save lcustodio/60c239ad0595569523964ccb9a114cee to your computer and use it in GitHub Desktop.
easy-webpack/config-less
***
less config:
...
require('@easy-webpack/config-less')
({ filename: 'styles.css', allChunks: false, sourceMap: false }),
...
***
➜ webpack-proj npm run start
> sesame@0.4.0 start /Users/luis/projects/aurelia/webpack-proj
> npm run server:dev
> sesame@0.4.0 server:dev /Users/luis/projects/aurelia/webpack-proj
> cross-env NODE_ENV=development node ./node_modules/webpack-dev-server/bin/webpack-dev-server --inline --progress --profile --watch
http://localhost:9000/
webpack result is served from /
content is served from /Users/luis/projects/aurelia/webpack-proj
404s will fallback to /index.html
/Users/luis/projects/aurelia/webpack-proj/node_modules/loader-runner/lib/LoaderRunner.js:104
if(isError) throw e;
^
TypeError: Cannot read property '/Users/luis/projects/aurelia/webpack-proj/node_modules/@easy-webpack/config-css/node_modules/extract-text-webpack-plugin' of null
at /Users/luis/projects/aurelia/webpack-proj/node_modules/@easy-webpack/config-css/node_modules/extract-text-webpack-plugin/index.js:230:27
at /Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:458:4
at Array.forEach (native)
at callback (/Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:457:14)
at Compilation.<anonymous> (/Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:478:4)
at /Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:325:10
at /Users/luis/projects/aurelia/webpack-proj/node_modules/async/lib/async.js:52:16
at Object.async.forEachOf.async.eachOf (/Users/luis/projects/aurelia/webpack-proj/node_modules/async/lib/async.js:236:30)
at Object.async.forEach.async.each (/Users/luis/projects/aurelia/webpack-proj/node_modules/async/lib/async.js:209:22)
at Compilation.addModuleDependencies (/Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:194:8)
at Compilation.processModuleDependencies (/Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:179:7)
at Compilation.<anonymous> (/Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:465:8)
at /Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:126:4
at Array.forEach (native)
at callback (/Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:125:12)
at /Users/luis/projects/aurelia/webpack-proj/node_modules/webpack/lib/Compilation.js:149:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment