diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-04-17 14:50:26 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-04-17 14:50:26 -0400 |
| commit | fb86cb075d5a075ce273588693fba57e4338b349 (patch) | |
| tree | c2b37ca28982aba8f689b6da088c2328f5c93bd2 /www/lib/ionic-native-transitions/webpack.config.js | |
| parent | 9b96991f06a11513b524e45d06dab0ebbbd26ea7 (diff) | |
#226 - kung-fu native transitions
Former-commit-id: 78e74ddfc0db6458a7dfd1af0fb5ca9acf3abacd
Diffstat (limited to 'www/lib/ionic-native-transitions/webpack.config.js')
| -rw-r--r-- | www/lib/ionic-native-transitions/webpack.config.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/www/lib/ionic-native-transitions/webpack.config.js b/www/lib/ionic-native-transitions/webpack.config.js new file mode 100644 index 00000000..1fe3116e --- /dev/null +++ b/www/lib/ionic-native-transitions/webpack.config.js @@ -0,0 +1,38 @@ +var path = require('path'), + testPath = path.join(__dirname, 'test'), + wwwPath = path.join(__dirname, 'www'), + docsPath = path.join(__dirname, 'docs'), + pkg = require('./package.json'), + HtmlWebpackPlugin = require('html-webpack-plugin'); + +module.exports = { + entry: path.join(testPath, 'index.js'), + output: { + path: wwwPath, + filename: 'test.js' + }, + module: { + loaders: [{ + test: /[\/]angular\.js$/, + loader: 'expose?angular!exports?window.angular' + }, { + test: /\.json$/, + loader: "json" + }, { + test: /\.css$/, + loader: "style!css" + }, { + test: [/ionicons\.svg/, /ionicons\.eot/, /ionicons\.ttf/, /ionicons\.woff/], + loader: 'file?name=fonts/[name].[ext]' + }, { + test: /\.js$/, + exclude: /(node_modules|bower_components)/, + loader: "ng-annotate?add=true!babel" + }] + }, + plugins: [new HtmlWebpackPlugin({ + filename: 'index.html', + pkg: pkg, + template: path.join(testPath, 'index.html') + })] +}; |
