If you simply remove the include and exclude rules from its loader config, the default behavior of transpiling everything besides what’s in node_modules will kick in. For some reason or another, the current rules are causing some/all files to be skipped.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | module.exports = { entry: './src/entry.js', output: { filename: './public/js/app.js' }, devtool: 'source-map', plugins: [ new ExtractTextPlugin('./public/css/style.css') ], module: { preLoaders: [{ test: /\.js$/, exclude: /node_modules/, loader: 'jshint-loader' }], loaders: [{ test: /\.scss$/, loader: ExtractTextPlugin.extract( 'style', 'css!sass' ), }, { test: /\.vue$/, loader: 'vue' }, { test: /\.js$/, loader: 'babel-loader', query: { presets: ['es2015'] } }] } }; |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.