This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.
Using npm alternative and node6 break the build #186
Closed
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
require("./main.css")
main.css
html{}
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.
Metadata
Metadata
Assignees
Labels
No labels