Skip to content

SmartWizard in Webpack #126

Answered by techlab
garethfoxtrot asked this question in Q&A
Apr 14, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Please follow the steps

Install required modules

npm i jquery
npm i smartwizard

// Webpack
npm install webpack webpack-cli style-loader css-loader --save-dev

Common JS/Webpack

var $ = require( "jquery" );
require( "smartwizard/dist/css/smart_wizard_all.css");
const smartWizard = require("smartwizard");

$(function() {
    $('#smartwizard').smartWizard();
});

OR

ES6/Babel

import $ from "jquery";
import "smartwizard/dist/css/smart_wizard_all.css";
import smartWizard from 'smartwizard';

$(function() {
    $('#smartwizard').smartWizard();
});

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@reidsneo
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by techlab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants