123456789101112131415161718192021222324252627282930313233 |
- var webpack = require('webpack');
- var ExtractTextPlugin = require('extract-text-webpack-plugin');
- var autoprefixer = require('autoprefixer');
- module.exports = {
- entry: './src/js/aos.js',
- output: {
- path: './dist',
- publicPath: 'dist/',
- filename: 'aos.js',
- library: 'AOS',
- libraryTarget: 'umd',
- },
- devServer: {
- contentBase: 'demo/'
- },
- module: {
- loaders: [
- {
- test: /\.js$/,
- loader: 'babel-loader'
- },
- {
- test: /\.scss$/,
- loader: ExtractTextPlugin.extract("style-loader", "css-loader?sourceMap!sass-loader!postcss-loader")
- }
- ]
- },
- plugins: [
- new ExtractTextPlugin('aos.css'),
- new webpack.optimize.UglifyJsPlugin()
- ]
- }
|