2016-11-06 28 views

回答

0

下面的补丁帮我做了。我只需要将web.js文件与其余的js文件连接起来。

+++ b/webpack/webpack.config.js 
@@ -18,19 +18,21 @@ module.exports = (options) => { 
     filename: `/scripts/${options.jsFileName}` 
    }, 
    resolve: { 
-  extensions: ['', '.js', '.jsx'] 
+  extensions: ['', '.js', '.jsx', '.web.js'] 
    }, 
    module: { 
     loaders: [{ 
-  test: /.js?$/, 
+  test: /.js?|.web.js?$/,