Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65d84e7

Browse files
committed
Export version without jQuery
1 parent cb2856f commit 65d84e7

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/gridstack-only.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// index.ts 2.0.0-rc @preserve
2+
3+
/**
4+
* A package's root file. Exports all non jQuery exported classes.
5+
*/
6+
import './gridstack-poly.js';
7+
8+
export * from './types';
9+
export * from './utils';
10+
export * from './gridstack-engine';
11+
export * from './gridstack-dragdrop-plugin';
12+
export * from './gridstack';

webpack.config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
const path = require('path');
22

33
module.exports = {
4-
entry: './src/index.ts',
4+
entry: {
5+
'gridstack-all': './src/index.ts',
6+
'gridstack-no-jquery': './src/gridstack-only.ts'
7+
},
58
mode: 'development',
69
module: {
710
rules: [
@@ -16,7 +19,7 @@ module.exports = {
1619
extensions: [ '.ts', '.js' ],
1720
},
1821
output: {
19-
filename: 'gridstack.all.js',
22+
filename: '[name].js',
2023
path: path.resolve(__dirname, 'dist'),
2124
library: 'GridStack',
2225
libraryExport: 'GridStack',

0 commit comments

Comments
 (0)