Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Setup webpack to enable full ES6 transpile #350

Merged
merged 1 commit into from Apr 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions generators/assets/webpack/templates/webpack.config.js.tmpl
Expand Up @@ -32,6 +32,9 @@ module.exports = {
rules: [{
test: /\.jsx?$/,
loader: "babel-loader",
options: {
presets: ['env']
},
exclude: /node_modules/
}, {
test: /\.scss$/,
Expand Down
4 changes: 2 additions & 2 deletions generators/assets/webpack/webpack.go
Expand Up @@ -62,8 +62,8 @@ func New(data makr.Data) (*makr.Generator, error) {
g.Add(c)

modules := []string{"webpack@~2.3.0", "sass-loader", "css-loader", "style-loader", "node-sass",
"babel-loader", "extract-text-webpack-plugin", "babel", "babel-core", "url-loader", "file-loader",
"jquery", "bootstrap", "path", "font-awesome", "npm-install-webpack-plugin", "jquery-ujs",
"extract-text-webpack-plugin", "babel", "babel-core", "babel-preset-env", "babel-loader", "url-loader",
"file-loader", "jquery", "bootstrap", "path", "font-awesome", "npm-install-webpack-plugin", "jquery-ujs",
"copy-webpack-plugin", "expose-loader",
}

Expand Down