0

我想在 Laravel Mix 编译中使用sparksuite/simplemde-markdown-editor 。

我在app.scss添加了这一行:

@import "node_modules/simplemde/dist/simplemde.min.css";

和app.js中的这一行:

window.SimpleMDE = require('simplemde');

我想在我的项目中编译这个插件......

4

1 回答 1

0
/* in webpack.mix.js file add following lines at the end  */

mix.js('resources/assets/js/app.js', 'public/js')

   .sass('resources/assets/sass/app.scss', 'public/css');

在终端中添加以下命令后运行

  1. npm run dev (或者)
  2. npm run watch
于 2017-09-10T12:34:10.410 回答