summaryrefslogtreecommitdiff
path: root/www/lib/ionic-native-transitions/webpack.config.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-09-21 12:49:18 -0400
committerPliable Pixels <pliablepixels@gmail.com>2017-09-21 12:49:18 -0400
commitb28028ac4082842143b0f528d6bc539da6ccb419 (patch)
tree1e26ea969a781ed8e323fca4e3c76345113fc694 /www/lib/ionic-native-transitions/webpack.config.js
parent676270d21beed31d767a06c89522198c77d5d865 (diff)
mega changes, including updates and X
Diffstat (limited to 'www/lib/ionic-native-transitions/webpack.config.js')
-rw-r--r--www/lib/ionic-native-transitions/webpack.config.js38
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')
+ })]
+};