1 thought on “How can i use summernote with webpack

  1. I finally got it to compile after adding these loaders,

    {
        test: /\.(jpe?g|png|gif|svg)$/i,
        loaders: [
            'url?limit=2048&name=[name]-[sha1:hash:hex:10].[ext]', // Inline images if they're less than 2 KiB
            //'image-webpack?bypassOnDebug&optimizationLevel=7&interlaced=false'
        ]
    },
    {
        test: /\.(eot|svg|ttf|woff2?)(\?\w+)?$/i,
        loaders: [
            'file?name=[name]-[sha1:hash:hex:10].[ext]',
        ]
    },

    And installing codemirror explicitly. However, I still get a JS error:

    TypeError: $node.attr(…).tooltip is not a function

    I don’t know what jQuery library is supposed to add tooltip but clearly I don’t have it.


    OK, I got it working. You need all of this crap too:

    require('bootstrap/js/tooltip');
    require('bootstrap/js/transition');
    require('bootstrap/less/bootstrap.less');
    require('summernote/dist/summernote.css');
    require('summernote');

Comments are closed.