File tree Expand file tree Collapse file tree 3 files changed +88
-0
lines changed
Expand file tree Collapse file tree 3 files changed +88
-0
lines changed Original file line number Diff line number Diff line change 1+ # config
2+ .DS_Store
3+ .sass-cache
4+ .svn /
5+ tmp /
6+
7+ # Editor.
8+ * .swp
9+
10+ # design data.
11+ * .psd
12+ * .ai
13+
14+ # node.js
15+ node_modules /
16+ package-lock.json
17+
18+ # Development environment.
19+ _ * /
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " js-scroll-effect-module" ,
3+ "version" : " 0.1.0" ,
4+ "description" : " Add effect according to scroll." ,
5+ "keywords" : [
6+ " scroll" ,
7+ " scroll effect" ,
8+ " scroll effect animation" ,
9+ " css" ,
10+ " animation" ,
11+ " keyframe" ,
12+ " transition" ,
13+ " plugin"
14+ ],
15+ "author" : " yama-dev" ,
16+ "license" : " MIT" ,
17+ "main" : " ./dist/js-scroll-effect-module.js" ,
18+ "scripts" : {
19+ "start" : " npm install && npm run develop" ,
20+ "develop" : " npm-run-all -p build:webpack server" ,
21+ "server" : " browser-sync start --server ./ --directory ./sample --files **/*.css **/*.js **/*.html" ,
22+ "build:webpack" : " webpack --progress --colors --watch"
23+ },
24+ "repository" : {
25+ "type" : " git" ,
26+ "url" : " https://github.com/yama-dev/js-scroll-effect-module"
27+ },
28+ "devDependencies" : {
29+ "babel-cli" : " ^6.26.0" ,
30+ "babel-core" : " ^6.26.0" ,
31+ "babel-loader" : " ^7.1.4" ,
32+ "babel-preset-env" : " ^1.6.1" ,
33+ "browser-sync" : " ^2.23.6" ,
34+ "npm-run-all" : " ^4.1.2" ,
35+ "webpack" : " ^4.6.0" ,
36+ "webpack-cli" : " ^2.0.14"
37+ }
38+ }
Original file line number Diff line number Diff line change 1+ const webpack = require ( 'webpack' ) ;
2+
3+ const config = {
4+ mode : 'production' ,
5+ entry : './src/js-scroll-effect-module.js' ,
6+ output : {
7+ path : `${ __dirname } /dist` ,
8+ filename : 'js-scroll-effect-module.js' ,
9+ libraryTarget : 'umd'
10+ } ,
11+ module : {
12+ rules : [
13+ {
14+ test : / \. j s $ / ,
15+ use : [
16+ {
17+ loader : 'babel-loader' ,
18+ options : {
19+ presets : [
20+ [ 'env' , { 'modules' : false } ]
21+ ]
22+ }
23+ }
24+ ] ,
25+ exclude : / n o d e _ m o d u l e s / ,
26+ }
27+ ]
28+ }
29+ } ;
30+
31+ module . exports = config ;
You can’t perform that action at this time.
0 commit comments