Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config file was accidentally being ignored
- Loading branch information
Robert-Frampton
authored and
Robert-Frampton
committed
Dec 6, 2017
1 parent
548ce13
commit 1b23164
Showing
2 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ build | |
coverage | ||
node_modules | ||
/lib | ||
**/*.soy.js | ||
src/**/*.soy.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() | ||
] | ||
}; |