mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-11-03 06:23:56 +08:00
Add production build script
This commit is contained in:
@@ -3,9 +3,6 @@
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"ecmaFeatures": {
|
||||
"experimentalObjectRestSpread": true
|
||||
},
|
||||
"rules": {
|
||||
"no-console": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
div#sholo-popover-item{display:none;position:absolute;background:#fff;margin:0;padding:15px;border-radius:5px;min-width:250px;max-width:300px;box-shadow:0 1px 10px rgba(0,0,0,.4);z-index:1000000000}div#sholo-popover-item .sholo-popover-tip{border:5px solid #fff;content:"";position:absolute}div#sholo-popover-item .sholo-popover-tip.bottom{bottom:-10px;border-top-color:#fff;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}div#sholo-popover-item .sholo-popover-tip.left{left:-10px;top:10px;border-top-color:transparent;border-right-color:#fff;border-bottom-color:transparent;border-left-color:transparent}div#sholo-popover-item .sholo-popover-tip.right{right:-10px;top:10px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;border-left-color:#fff}div#sholo-popover-item .sholo-popover-tip.top{top:-10px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:#fff;border-left-color:transparent}div#sholo-popover-item .sholo-popover-footer{display:block;clear:both;margin-top:5px}div#sholo-popover-item .sholo-popover-footer a{display:inline-block;padding:3px 10px;border:1px solid #d4d4d4;text-decoration:none;text-shadow:1px 1px 0 #fff;color:#2d2d2d;font:11px/normal sans-serif;cursor:pointer;outline:0;background-color:#f1f1f1;border-radius:2px;zoom:1;margin:10px 0 0}div#sholo-popover-item .sholo-popover-footer a.sholo-disabled{color:gray;cursor:default;pointer-events:none}div#sholo-popover-item .sholo-popover-footer .sholo-close-btn{float:left}div#sholo-popover-item .sholo-popover-footer .sholo-btn-group{float:right}div#sholo-popover-item .sholo-popover-title{font-size:19px;margin:0 0 5px;font-weight:700;display:block;position:relative}div#sholo-popover-item .sholo-popover-description{margin-bottom:0;font-size:14px;line-height:1.5;color:#2d2d2d;font-weight:400}
|
||||
/*# sourceMappingURL=sholo.min.css.map*/
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sholo.min.css","sources":[],"mappings":"","sourceRoot":""}
|
||||
Vendored
+2
File diff suppressed because one or more lines are too long
Vendored
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"sholo.min.js","sources":["webpack://Sholo/webpack/universalModuleDefinition"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Sholo\"] = factory();\n\telse\n\t\troot[\"Sholo\"] = factory();\n})(window, function() {\nreturn "],"mappings":"AAAA","sourceRoot":""}
|
||||
+2
-1
@@ -4,7 +4,8 @@
|
||||
"description": "A light-weight, vanilla JS library to bring certain parts of page in spotlight",
|
||||
"main": "./assets/scripts/dist/sholo.min.js",
|
||||
"scripts": {
|
||||
"start": "node server.js"
|
||||
"start": "node server.js",
|
||||
"build": "webpack --config webpack.config.prod.js "
|
||||
},
|
||||
"repository": "https://github.com/kamranahmedse/sholo",
|
||||
"author": "Kamran Ahmed <kamranahmed.se@gmail.com>",
|
||||
|
||||
@@ -4,13 +4,13 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: [
|
||||
'./assets/scripts/src/sholo.js',
|
||||
'./assets/styles/scss/demo.scss',
|
||||
'./src/index.js',
|
||||
'./src/sholo.scss',
|
||||
],
|
||||
output: {
|
||||
path: path.join(__dirname, '/assets'),
|
||||
publicPath: '/assets/',
|
||||
filename: 'scripts/dist/sholo.min.js',
|
||||
path: path.join(__dirname, '/dist'),
|
||||
publicPath: '/dist/',
|
||||
filename: 'sholo.min.js',
|
||||
libraryTarget: 'umd',
|
||||
library: 'Sholo',
|
||||
},
|
||||
@@ -48,7 +48,7 @@ module.exports = {
|
||||
},
|
||||
plugins: [
|
||||
new ExtractTextPlugin({
|
||||
filename: 'styles/css/sholo.min.css',
|
||||
filename: 'sholo.min.css',
|
||||
allChunks: true,
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user