This repository was archived by the owner on May 29, 2019. It is now read-only.

Description
webpack.config.js
var path = require('path') var ExtractTextPlugin = require("extract-text-webpack-plugin") module.exports = { entry: './main.js', output: { path: path.resolve(__dirname, './dist'), publicPath: '/dist/', filename: 'app.js' }, module: { loaders: [ { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") } ] }, plugins: [ new ExtractTextPlugin("app.css") ], } main.js
main.css
when using node6, if modules was installed from npm alternatives (eg: https://github.com/cnpm/npminstall, https://github.com/alexanderGugel/ied, which using symlink to save disk space and time) result in following error.
ERROR in ./main.css Module build failed: Error: "extract-text-webpack-plugin" loader is used without the corresponding plugin, refer to https://github.com/webpack/extract-text-webpack-plugin for the usage example at Object.module.exports.pitch (/private/tmp/example/node_modules/.npminstall/extract-text-webpack-plugin/1.0.1/extract-text-webpack-plugin/loader.js:21:9) @ ./main.js 1:0-18
which works well in the node5.11.1, and using original npm with node 6 works well too.