Skip to content

Commit

Permalink
Config file was accidentally being ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Frampton authored and Robert-Frampton committed Dec 6, 2017
1 parent 548ce13 commit 1b23164
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -3,4 +3,4 @@ build
coverage
node_modules
/lib
**/*.soy.js
src/**/*.soy.js
35 changes: 35 additions & 0 deletions webpack.config.soy.js
@@ -0,0 +1,35 @@
const webpack = require('webpack');

module.exports = {
entry: './src/soy/TodoApp.js',
module: {
rules: [{
test: /\.js$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader',
options: {
compact: false,
presets: ['babel-preset-es2015']
}
}
}, {
test: /\.scss$/,
use: [{
loader: "style-loader"
}, {
loader: "css-loader"
}, {
loader: "sass-loader"
}]
}]
},
output: {
library: 'metal',
libraryTarget: 'this',
filename: './build/globals/todo-app.js'
},
plugins: [
new webpack.optimize.ModuleConcatenationPlugin()
]
};

0 comments on commit 1b23164

Please sign in to comment.