diff --git a/modules/feature/file-templates/config.el b/modules/feature/file-templates/config.el index d0316f043..d045733b1 100644 --- a/modules/feature/file-templates/config.el +++ b/modules/feature/file-templates/config.el @@ -65,10 +65,11 @@ ("/main\\.java$" "__main" java-mode) ("/build\\.gradle$" "__build.gradle" android-mode) ;; Javascript - ("\\.\\(json\\|jshintrc\\)$" "__" json-mode) - ("/package\\.json$" "__package.json" json-mode) - ("/bower\\.json$" "__bower.json" json-mode) - ("/gulpfile\\.js$" "__gulpfile.js" js-mode) + ("\\.\\(json\\|jshintrc\\)$" "__" json-mode) + ("/package\\.json$" "__package.json" json-mode) + ("/bower\\.json$" "__bower.json" json-mode) + ("/gulpfile\\.js$" "__gulpfile.js" js-mode) + ("/webpack\\.config\\.js$" "__webpack.config.js" js-mode) ("\\.lbaction/.+/Info.plist$" "__Info.plst" lb6-mode) ("\\.lbaction/.+/\\(default\\|suggestions\\)\\.js$" "__default.js" lb6-mode) ;; Lua diff --git a/modules/feature/file-templates/templates/js-mode/__webpack.config.js b/modules/feature/file-templates/templates/js-mode/__webpack.config.js new file mode 100644 index 000000000..267eae732 --- /dev/null +++ b/modules/feature/file-templates/templates/js-mode/__webpack.config.js @@ -0,0 +1,15 @@ +module.exports = { + entry: [ + ${1:'./app/main.js'} + ], + output: { + path: __dirname + '/dist', + filename: "app.bundle.js" + }, + module: { + loaders: [ + { test: /\.js$/, include: __dirname + '/app', loader: 'babel-loader' }$0 + ] + } + // plugins: [] +}; \ No newline at end of file