forked from michalsnik/aos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
35 lines (34 loc) · 786 Bytes
/
webpack.config.js
File metadata and controls
35 lines (34 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var autoprefixer = require('autoprefixer');
module.exports = {
entry: './src/js/aos.js',
devtool: 'source-map',
output: {
path: './dist',
publicPath: 'dist/',
filename: 'aos.js',
library: 'AOS',
libraryTarget: 'umd',
sourceMapFilename: '[file].map'
},
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()
]
}