From b28028ac4082842143b0f528d6bc539da6ccb419 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 21 Sep 2017 12:49:18 -0400 Subject: mega changes, including updates and X --- www/lib/ionic-native-transitions/webpack.config.js | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 www/lib/ionic-native-transitions/webpack.config.js (limited to 'www/lib/ionic-native-transitions/webpack.config.js') 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') + })] +}; -- cgit v1.2.3